COWMODSКаталог модов

MySqlPlayerBridge

Sync Player data across servers using a MySql database, the FREE modern alternative

Автор: Lostes-Burger3491обновлён 27 сент. 2026 г.
Механики игрыУправлениеУтилиты

Описание

MySqlPlayerBridge

MySqlPlayerBridge

Modern player data sync for Minecraft servers with MySQL. Built for current Paper/Bukkit and Folia servers, with modular sync and admin tooling. Designed for multi-server setups where a single database should be the source of truth.

GitHub

Highlights

  • Folia and Bukkit/Paper compatible with async-first design.
  • Module-based sync to enable only what you need.
  • Admin edit tools to inspect and change player data directly in the database, including GUI editors for inventories.
  • Fail-safe logging and local error snapshots for troubleshooting and recovery.
  • No-entry protection to avoid overwriting data from the wrong server.

Features

  • Cross-server sync with a shared MySQL database. Each module stores its own table for isolation and safety.
  • Selective modules (enable only what you want):
    • Inventory
    • Offhand
    • Ender Chest
    • Armor
    • Location
    • Gamemode
    • Experience
    • Health
    • Saturation
    • Economy (Vault)
    • Potion Effects
    • Advancements
    • Statistics
    • Hotbar slot selection
  • Admin commands for operations and recovery:
    • /mpb sync manual sync
    • /mpb clear wipe player data
    • /mpb edit edit player data (includes GUI inventory editors and direct numeric edits)
  • Automatic sync task for periodic saving.
  • Error handling with structured logs and data backups (stored under the plugin folder).

Installation

  1. Download and install NBTAPI.
    • Required for inventory, armor, ender chest, and offhand serialization.
  2. Put MySqlPlayerBridge in your server plugins/ folder.
  3. Start the server once to generate configs.
  4. Configure MySQL in plugins/MySqlPlayerBridge/mysql.yml.
  5. Enable the modules you want in plugins/MySqlPlayerBridge/config.yml.
  6. Restart the server.

MySQL Setup (native server)

Create a database and user with minimal privileges. Example for a local MySQL server:

CREATE DATABASE mpb;
CREATE USER 'mpb_user'@'%' IDENTIFIED BY 'your_password';
GRANT ALL PRIVILEGES ON mpb.* TO 'mpb_user'@'%';
FLUSH PRIVILEGES;

Then set mysql.yml:

host: "127.0.0.1"
port: 3306
database: "mpb"
user: "mpb_user"
password: "your_password"
main-table-name: "player_data"

Admin Edit Feature

The edit system is designed for real-world operations:

  • Edit any supported module values directly in the database.
  • Inventory, armor, ender chest, and offhand are edited via GUI.
  • Numeric fields validate input before saving.
  • Offline players can be edited using database entries.

Example:

/mpb edit <player> inventory
/mpb edit <player> offhand
/mpb edit <player> location <world> <x> <y> <z> [yaw] [pitch]
/mpb edit <player> exp <value>
/mpb edit <player> exp_level <value>

Requirements

  • MySQL or MariaDB
  • Java 21
  • NBTAPI (required for inventory serialization)
  • Vault (optional, for economy sync)

Languages

Built-in translations:

  • English: src/main/resources/lang/en-us.yml
  • German: src/main/resources/lang/de-de.yml
  • Chinese: src/main/resources/lang/zh-cn.yml

You can submit new translations any time via PR. Keep the key structure and formatting consistent with existing files.

Notes

  • Cross-version syncing between different Minecraft versions is not guaranteed.
  • Folia and Bukkit/Paper support remains a core focus.

License

See LICENSE

Последние версии

Все версии →
release

MySqlPlayerBridge 4.1.0

4.1.0
27 сент. 2026 г.153Minecraft: 1.21, 1.21.1, 1.21.2, 1.21.3, 1.21.4, 1.21.5, 1.21.6, 1.21.7, 1.21.8, 1.21.9, 1.21.10, 1.21.11, 26.1, 26.1.1, 26.1.2, 26.2, 26.3folia, paper, purpur, spigot
Скачать
Что нового
# Version 4.0.0 includes major database and synchronization changes. Please back up your database before updating. Special thanks to @TobiBoyGitHub for reporting issue #8 and @muzaaqi for reporting issue #4 . Their reports were the main reason for the synchronization rewrite in 4.0.0. > This release contains all changes since version 3.7.6. ### Version 4.1.0 improves the `/mpb edit` command and fixes several issues with online and offline player editing. - Restored offline player tab completion. - Improved inventory and player data editing. - Added safer saving and additional validation. ### Version 4.0.0 - Completely rewritten synchronization system for Paper and Folia. - Added safer cross-server switching using player leases and individual session tokens. - Player data is now saved as transactional snapshots to prevent incomplete or conflicting saves. - Added a dedicated HikariCP connection pool. Database operations no longer run on Minecraft or Folia tick threads. - Improved join, quit, reconnect, automatic save and shutdown handling. - Failed saves are retried when possible and written to local recovery files if they cannot be completed. - Reworked Vault economy synchronization. - Fixed synchronization of custom namespaced advancements. - Improved automatic database and legacy-data migrations. - Updated commands, configuration files, translations and documentation. - Added automated tests for the new synchronization and database systems. ### Version 3.8.0 - Fixed plugin startup continuing before database migrations were completed. - Added a join lock until the server, database and synchronization system are fully ready. - Player connections remain blocked if startup or migration fails. - Updated startup messages and the Chinese translation. Special thanks to cityjd for the idea behind the startup join-lock system.
release

MySqlPlayerBridge v3.7.6

3.7.6
22 июл. 2026 г.122Minecraft: 1.21, 1.21.1, 1.21.2, 1.21.3, 1.21.4, 1.21.5, 1.21.6, 1.21.7, 1.21.8, 1.21.9, 1.21.10, 1.21.11, 26.1, 26.1.1, 26.1.2, 26.2folia, paper, purpur, spigot
Скачать
Что нового
## English It's been a while, this release includes a bug fix and join deny for unsupported cross-version item data. For both, the report and the feature idea: **thank you to @cityjd** **Bug fixes:** - Statistics Syncing was using the sync Advancements variable from config, so changing the sync.statistics variable in config.yml did in fact NOT enable or disable the statistics sync. **New Features:** - join deny for unsupported cross-version item data: When joining an older server running the plugin the join will be canceled if the player data contains an enchantment / item that doesn't exist in the server's version. For example a new item from 26.x can't be transferred to an 21.x server. ## Deutsch Es ist schon etwas her, dieses Release enthält einen Bugfix sowie eine Beitrittssperre für nicht unterstützte, versionsübergreifende Item-Daten. Sowohl für den Fehlerbericht als auch für die Feature-Idee gilt: **Vielen Dank an @cityjd** **Bugfixes:** * Die Synchronisierung der Statistiken verwendete fälschlicherweise die Konfigurationsvariable für die Synchronisierung der Fortschritte. Dadurch wurde die Statistiksynchronisierung durch das Ändern der Variable `sync.statistics` in der `config.yml` tatsächlich **nicht** aktiviert oder deaktiviert. **Neue Funktionen:** * Beitrittssperre für nicht unterstützte, versionsübergreifende Item-Daten: Beim Beitritt zu einem älteren Server, auf dem das Plugin läuft, wird die Verbindung abgebrochen, wenn die Spielerdaten eine Verzauberung oder ein Item enthalten, das in der Serverversion nicht existiert. Beispielsweise kann ein neues Item aus Version 26.x nicht auf einen Server mit Version 21.x übertragen werden.
release

MySqlPlayerBridge 3.7.5

3.7.5
28 мая 2026 г.74Minecraft: 1.21, 1.21.1, 1.21.2, 1.21.3, 1.21.4, 1.21.5, 1.21.6, 1.21.7, 1.21.8, 1.21.9, 1.21.10, 1.21.11, 26.1, 26.1.1, 26.1.2folia, paper, purpur, spigot
Скачать
Что нового
This release overhauls the Folia compatibility layer. All modules and data handlers migrated to Player / Region specific Schedulers to ensure a more stable experience when using Folia 26.x Thanks to @mcdsp_ for bringing this issue to my attention.