MySQL Economy Bridge
A simple light plugin that uses Vault to sync players economy accounts to a MySQL database to create a global economy system over many servers. Can be useful to sync a hub economy.
Features
  • Premium UUID and Offline UUID support.
  • MySQL Database only.
  • Supports any Economy system that works with Vault.
How does it work?
It listens for server join and leave events to sync the economy over mysql database to share it over many servers. When a player leaves/disconnects a server the plugin uploads the players balance 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 economy.

Dependencies
  • Vault - Download
  • Any Economy system compatible with Vault
  • MySQL Database
Install instructions
  • Place the plugin in the server plugins folder. Make sure you have an economy system installed and Vault.
  • 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. You can sync as many servers economy accounts as you like.
There are no commands or permissions.

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)
dataTableName: 'eco_accounts'
#User name
user: 'admin'
#User password
password: 'cheesecake'
#This maintenance task runs async with a 2 min delay after the server starts.
removeOldAccounts:
#Enable or disable database clean up of old accounts. | (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
Note!
This plugin does not create an economy system, it only uses Vault to sync an existing economy system over mysql.

Latest updates

  1. Nothing important

    IGNORE

Similar resources

CMI - 240+ Commands/Insane Kits/Portals/Essentials/Economy/MySQL & SqLite/Much More! PaperPlane
5.00 star(s) 3 ratings
Downloads
248
Updated
CMI - 240+ Commands/Insane Kits/Portals/Essentials/Economy/MySQL & SqLite/Much More! A
1.00 star(s) 3 ratings
Downloads
374
Updated
CMI - 240+ Commands/Insane Kits/Portals/Essentials/Economy/MySQL & SqLite/Much More! N
CMI - 240+ Commands/Insane Kits/Portals/Essentials/Economy/MySQL & SqLite/Much More!
5.00 star(s) 1 ratings
Downloads
99
Updated
BlackSpigot General Chat
Rules Help Users
    RealNotSound @ RealNotSound: hey if I buy blackspigot bundle do I still need to buy the nulletbuild bunder Yes you do...
    Top