A simple light plugin that sync players inventory and armor using a MySQL database over as many servers as you like.
Features
It listens for server join and leave events to sync the players inventory to a mysql database to share it over many servers. When a player leaves/disconnects a server the plugin uploads the players inventory to the mysql database. When the player joins the server the plugin checks the mysql database for his account and syncs it to the server he just joined.
Dependencies
Install instructions
Configuration example:
======> My Plugins <======
Share more then just inventory (Economy, EnderChest, Health, Active potion effects, Experience ...) using our plugin MySQL Player Data Bridge
Features
- Premium UUID and Offline UUID support.
- MySQL Database only.
- Sync players inventory.
- Sync players armor, this can be disabled in the config.
- Modded items support.
- Database maintenance task to remove inactive users.
It listens for server join and leave events to sync the players inventory to a mysql database to share it over many servers. When a player leaves/disconnects a server the plugin uploads the players inventory to the mysql database. When the player joins the server the plugin checks the mysql database for his account and syncs it to the server he just joined.
Dependencies
- A MySQL Database
- (Optional) ProtocolLib - Download
Install instructions
- Place the plugin in the server plugins folder.
- Start the server to generate the config, then stop the server.
- Open the config and set up the database connection details. You need to create the database, then the plugin will create the tables on it's own.
- Start the Server. Done, enjoy. Share exp on as many servers as you need.
Configuration example:
#MySQL Database details
database:
mysql:
#MySQL server address
host: 127.0.0.1
#MySQL server port (default 3306)
port: 3306
#Database name (NOTE! You need to create the database, then the plugin will create the tables.)
databaseName: 'mydatabase'
#Tables name (the plugin will auto create it)
tableName: 'meb_inventory'
#User name
user: 'admin'
#User password
password: 'cheesecake'
#SSL connection
sslEnabled: false
#Remove inactive users from the database. This maintenance task will start each server start with a 2min delay.
maintenance:
#Enable or disable database maintenance. | (true or false)
enabled: false
#Inactivity in days. Default 60 days.
inactivity: 60
#Other configurable options
General:
#Save online players accounts to database task. Disable this task and data will only be saved when the player disconnects.
#To limit data loss in case the server crashes enable this saving task. It runs async so there will be no lag involved.
saveDataTask:
#Enable or disable the data save task. | (true or false)
enabled: true
#Time between data saves in minutes. | Default 3 min.
interval: 3
#Hide the data save task log messages.
hideLogMessages: false
#Login economy sync delay in milliseconds (default 1000 milliseconds = 1 second)
#This delay is needed in bungeecord setups, because when you move between servers the quit and login takes place almost in the same time.
loginSyncDelay: 1000
#Set this to false to disable the sync of players armor. | (true or false)
syncArmorEnabled: true
#Enable modded items support. This will require the ProtocolLib dependency! | (true or false)
#This is needed if you experience item data loss on some mods that save NBT data.
enableModdedItemsSupport: false
#Disable sounds generated by this plugin. The sync confirmation sound for example. | (true or false)
disableSounds: false
#Chat Messages with full color and format codes support. Disable any message by setting it to '' | Example> syncComplete: ''
#Minecraft Color and Format Codes: http://minecraft.gamepedia.com/Formatting_codes
ChatMessages:
syncComplete: '&2[MIB] &aData sync complete!'
database:
mysql:
#MySQL server address
host: 127.0.0.1
#MySQL server port (default 3306)
port: 3306
#Database name (NOTE! You need to create the database, then the plugin will create the tables.)
databaseName: 'mydatabase'
#Tables name (the plugin will auto create it)
tableName: 'meb_inventory'
#User name
user: 'admin'
#User password
password: 'cheesecake'
#SSL connection
sslEnabled: false
#Remove inactive users from the database. This maintenance task will start each server start with a 2min delay.
maintenance:
#Enable or disable database maintenance. | (true or false)
enabled: false
#Inactivity in days. Default 60 days.
inactivity: 60
#Other configurable options
General:
#Save online players accounts to database task. Disable this task and data will only be saved when the player disconnects.
#To limit data loss in case the server crashes enable this saving task. It runs async so there will be no lag involved.
saveDataTask:
#Enable or disable the data save task. | (true or false)
enabled: true
#Time between data saves in minutes. | Default 3 min.
interval: 3
#Hide the data save task log messages.
hideLogMessages: false
#Login economy sync delay in milliseconds (default 1000 milliseconds = 1 second)
#This delay is needed in bungeecord setups, because when you move between servers the quit and login takes place almost in the same time.
loginSyncDelay: 1000
#Set this to false to disable the sync of players armor. | (true or false)
syncArmorEnabled: true
#Enable modded items support. This will require the ProtocolLib dependency! | (true or false)
#This is needed if you experience item data loss on some mods that save NBT data.
enableModdedItemsSupport: false
#Disable sounds generated by this plugin. The sync confirmation sound for example. | (true or false)
disableSounds: false
#Chat Messages with full color and format codes support. Disable any message by setting it to '' | Example> syncComplete: ''
#Minecraft Color and Format Codes: http://minecraft.gamepedia.com/Formatting_codes
ChatMessages:
syncComplete: '&2[MIB] &aData sync complete!'
If you like this resource and want to say thank you with a donation please use this PayPal button. Thanks!
This plugin is made by CraftersLand Minecraft Community.
Feel free to check us out at: www.craftersland.net
Feel free to check us out at: www.craftersland.net