MC Data Bridge is a Spigot/Paper plugin designed to seamlessly synchronize player data across multiple Minecraft servers. This allows players to move between linked servers (e.g., a Towny server and a Resource server) and retain their health, hunger, experience, inventory, armor, and active potion effects.
mvn clean package to build the plugin.mc-data-bridge-1.21.8.1-shaded.jar) will be located in the target/ directory.mc-data-bridge-1.21.8.1-shaded.jar file into the plugins/ folder of each PaperMC server you wish to synchronize.A config.yml file will be generated in the plugins/mc-data-bridge/ folder after the first run (or you can create it manually). You must update this file with your MySQL database credentials.
database:
host: localhost
port: 3306
database: minecraft
username: user
password: password
debug: false
database.host: Your MySQL database host (e.g., localhost, 127.0.0.1, a remote IP, or a Docker named volume if your database is running in Docker).database.port: The port your MySQL database is running on (default is 3306).database.database: The name of the database to use for player data.database.username: The username for connecting to your database.database.password: The password for the database user.debug: Set to true to enable verbose debugging messages in the server console. Set to false for normal operation.To sync player data between specific groups of servers (e.g., a Towny server and a Towny resource server, separate from a Creative server), simply configure the database.database (or even entirely different database.host, username, password) to match for the servers you want to link.
Example:
database:
host: my_db_host
port: 3306
database: towny_player_data # All Towny servers use this database
username: towny_user
password: towny_password
debug: false
database:
host: my_db_host
port: 3306
database: creative_player_data # All Creative servers use this database
username: creative_user
password: creative_password
debug: false
mc-data-bridge-1.21.8.1-shaded.jar file into the plugins/ folder of all your PaperMC servers.config.yml in each server's plugins/mc-data-bridge/ folder with the appropriate database credentials for your desired synchronization groups.player_data table in your specified database if it doesn't already exist.
Seamlessly sync player inventory, health, XP, and effects across your BungeeCord/Velocity network.