Data Storage
π§ Overview
The plugin supports two main storage methods for saving player and game data:
Local (JSON Files) β Easy to access and modify directly.
MySQL Database β Recommended for larger servers or multi-instance setups.
All player data, statistics, and settings are stored in structured JSON files by default, ensuring easy manual editing when needed.
π File Structure
All data is located in the /ArenaLegends/data/ directory.
/data/settings.yml
Contains various local plugin settings.
/data/metrics.yml
Used for tracking plugin metrics and analytics.
/data/players/
Stores individual player data files in JSON format.
Example structure:
/ArenaLegends/
βββ data/
βββ settings.yml
βββ metrics.yml
βββ players/
βββ Notch.json
βββ Steve.json
βββ Alex.jsonποΈ MySQL Integration
You can switch from local file storage to MySQL for centralized and scalable data management.
How to Enable MySQL
Open your main configuration file:
Locate the
mysql-settingssection.Set
enabledtotrue.Fill in your database credentials (host, port, database, username, password).
βοΈ Configuration
Last updated