πΎ Data Storage Options
VotingPlugin supports multiple data storage systems for player votes, totals, and statistics.
You can freely switch between them using built-in conversion commands.
π¦ Available Storage Types
| Type | Description |
|---|---|
| FLAT | Legacy text-based format (β οΈ Will be removed soon) |
| SQLITE | Local database stored in Users.db (default for small servers) |
| MYSQL | External SQL server β best for networks and multi-server setups |
π Data Conversion
VotingPlugin can transfer all player data between these storage systems.
This includes totals, streaks, and vote history (depending on version).
β οΈ Warning: Existing data in the target storage will be overwritten, not merged.
π§ Commands
| Command | Description |
|---|---|
/av convertfromdata (storage) |
Import data into the current storage from the specified source |
/av converttodata (storage) |
Export data from the current storage to the specified target |
Example:
/av converttodata MYSQL
π‘ Run these commands from the console for best results β youβll see live progress updates.
βοΈ Conversion Details
- Each playerβs data is migrated in sequence.
- Progress updates are logged every 100 users processed.
- Large databases may take hours to complete depending on hardware and user count.
- Avoid running this during active voting or other data-modifying actions.
This ensures consistency and prevents partial writes.
β Recommendation
- Use MySQL for large or multi-server setups.
- Use SQLite for small standalone servers.
- Do not rely on Flat file β it is deprecated and will be removed in future releases.
π§ Tip: You can confirm your current data storage type in
Config.ymlunderStorageType.