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.

  • Switching between local and MySQL storage can be done at any time β€” just restart the server after changing settings.

  • Player data is saved in JSON format, making it easy to manually view or edit stats.

  • For multi-server environments (e.g., Bungee or Velocity networks), MySQL is strongly recommended.


πŸ“ File Structure

All data is located in the /ArenaLegends/data/ directory.

Path
Description

/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

  1. Open your main configuration file:

  2. Locate the mysql-settings section.

  3. Set enabled to true.

  4. Fill in your database credentials (host, port, database, username, password).

βš™οΈ Configuration

Last updated