databaseData Storage

🧭 Overview

ArenaLegends supports two main storage methods for player and game data:

  1. Local (JSON Files) β€” Default. Easy to access and edit manually.

  2. MySQL Database β€” Recommended for larger servers or multi-server networks.

All player data, statistics, and settings are stored in structured JSON files by default.


πŸ“ 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

Switching to MySQL is recommended for centralized data management, especially on networks (BungeeCord/Velocity).

How to Enable

  1. Open /ArenaLegends/config.yml.

  2. Locate the mysql section.

  3. Set enabled to true.

  4. Fill in your database credentials.

βš™οΈ Configuration

circle-info
  • Switching: You can switch between local and MySQL at any time. Restart the server to apply changes.

  • Performance: MySQL handles large datasets more efficiently than flat files.

Last updated