HomeJavaModsMySQL Economy Bridge
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 spigot servers. Can be useful to sync a hub economy. This is NOT a bungee plugin.

Do you want to save players data (Inventory, Enderchest, Money, Health, Exp and more...) on MySQL database? Or sync players data across servers? Then check out my other plugin:
[​IMG] MySQL Player Data Bridge
Do you want to save Essentials data on MySQL database? Or sync Essentials data across servers?
Then consider checking out my other plugin:
[​IMG] Essentials MySQL Storage Extension


Features
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
Install instructions
There are no commands or permissions.

Configuration example:
Spoiler: config.yml
#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'
#SSL connection
sslEnabled: false
#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.


If you like this resource and want to say thank you with a donation please use this PayPal button. Thanks!
[​IMG]


This plugin is made by CraftersLand Minecraft Community.
:) Feel free to check us out at: www.craftersland.net
[​IMG]

Plugin details

Read from the plugin's own plugin.yml.

Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

MySQL Economy Bridge is a free Minecraft Java mod. Compatible with Minecraft 1.7, 1.8, 1.9, 1.10 and newer. Downloaded 17,846 times (via Spigot). Download it and open it directly in the game.

Explore more