MySQL Player Sync โ Official Wiki
๐ Welcome to the MySQL Player Sync Wiki! Here youโll find everything you need to set up, configure, and troubleshoot the plugin.
๐ Table of Contents
๐ง Installation
โ Configuration
๐พ Database Setup
๐ How It Works
โ Troubleshooting
๐ข FAQ
๐ฎ Compatibility
๐ฅ Downloads & Support
๐ง Installation
Download the latest version of MySQL Player Sync from SpigotMC.
Place the
.jar
file in the/plugins/
folder on your server.Start your server to generate the
config.yml
file.Edit
config.yml
with your MySQL database details.Restart your server โ done! ๐
โ Configuration
The plugin comes with an easy-to-use config.yml
file. Below is a breakdown of the settings:
language: "en" # Available: "en", "de"
mysql:
host: "localhost"
port: 3306
database: "minecraft_db"
user: "root"
password: ""
settings:
auto-save: true # Automatically save player data on logout
sync-on-join: true # Load player data when they join
๐น Supported Languages:
en
โ Englishde
โ German
๐พ Database Setup
1. MySQL Installation
If you donโt have MySQL installed, follow these steps:
Windows: Download MySQL Server
Linux: Install via terminal:
sudo apt update && sudo apt install mysql-server
2. Creating a Database
Run the following commands in MySQL CLI or phpMyAdmin:
CREATE DATABASE minecraft_db;
CREATE USER 'root'@'localhost' IDENTIFIED BY 'yourpassword';
GRANT ALL PRIVILEGES ON minecraft_db.* TO 'root'@'localhost';
FLUSH PRIVILEGES;
๐ How It Works
๐ข When a player joins โ The plugin loads their saved data from the database.
๐ด When a player leaves โ The plugin automatically saves their inventory, XP, health, and game mode.
๐ Cross-server support โ Players will have the same data across multiple servers if connected to the same database.
โ Troubleshooting
1. Connection Issues
โ Error: Could not connect to MySQL โ Solution:
Check your
config.yml
for correct MySQL details.Ensure your MySQL server is running.
Allow remote connections if your database is on another machine.
2. Player Data Not Saving
โ Error: No data is saved when players leave. โ Solution:
Ensure
auto-save: true
is enabled inconfig.yml
.Check the console/logs for errors.
๐ข FAQ
โ Does this plugin work with BungeeCord or Velocity? โก No, this plugin is designed for Spigot/Paper servers only.
โ Can I sync data between multiple servers? โก Yes, as long as they use the same MySQL database.
โ Which Minecraft versions are supported? โก Minecraft 1.21 โ 1.21.4
๐ฎ Compatibility
โ Minecraft Versions: 1.21 โ 1.21.4 โ Server Software: Spigot, Paper, Purpur โ Database: MySQL, MariaDB
๐ฅ Downloads & Support
๐น Download: SpigotMC Plugin Page ๐ฌ Need Help? Join our Discord
Last updated