MySQL Economy Bridge 3.4.1

[1.7.10 - 1.15.2] Sync your economy accounts over many servers using MySQL.

  1. brunyman
    Native Minecraft Version:
    1.13
    Tested Minecraft Versions:
    • 1.7
    • 1.8
    • 1.9
    • 1.10
    • 1.11
    • 1.12
    • 1.13
    • 1.14
    • 1.15
    Source Code:
    https://github.com/brunyman/MysqlEconomyBridge.git
    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
    • 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'
    #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]
    TNT_JOHNN, SkyDrawn, SanyaFox and 8 others like this.

Recent Updates

  1. Spigot 1.15 support
  2. 1.14 Support.
  3. Improvements

Recent Reviews

  1. KerbalFun123
    KerbalFun123
    2/5,
    Version: 3.4.1
    Plugin disables itself despite vault being installed. This is an issue I have had with other plugins and is just simply malpractice. Plugins load at different times and different rates. Simply put your plugin fails to recognize that vault has hooked into an economy plugin and self disables, because most economy plugins hook way later than your plugin checks.
    Example: Easyconomy reloaded
    Easyconomy loads in and successfully hooks into vault ( I know this because it registers itself and works with other plugins) towards the end of server startup. Nothing wrong with that. Now, your plugin does not check then and disables itself right after vault loads. I had to deal with another plugin having this issue and it is an incredibly simple fix.
    Remove the self disabling. Plain. And. Simple. I can't and will not change out my economy plugin because the others are too dated or would require me redoing my economy system.
    If you fix this and change this I would rate 5 stars because otherwise, this is not a bad plugin.
  2. The_Mr_Mes109
    The_Mr_Mes109
    3/5,
    Version: 3.4.1
    Support 1.16 will be ? How long ago did I use this plugin and I liked its work. I use bungeecord with different versions of minecraft and I would like this plugin to work on 1.16+
  3. LH4005
    LH4005
    4/5,
    Version: 3.4.1
    This is a very good plugin, Though my server lags A TON Please Update Thanks :) - Logan
  4. Yellowbarmitzwa
    Yellowbarmitzwa
    5/5,
    Version: 3.4.1
    AWESOME !
  5. avilal
    avilal
    4/5,
    Version: 3.4.1
    Works well as designed. I did not read the fine print that offline players cannot have their funds increased using Essentialx(s). Please rally in Discord to request this support be added.
  6. JW677
    JW677
    5/5,
    Version: 3.4.1
    Works perfectly in all versions, Allowed me to finish the backend to my tournament project. Please keep updating, Thanks for this AMAZING plugin!
  7. NiKunHax
    NiKunHax
    5/5,
    Version: 3.4.1
    It works perfectly and I am using it from 1 year, however it would be good to add an Essentials Extension, so that if I add money to an offline player they don't get resetted to the old value.
  8. Kedarin
    Kedarin
    1/5,
    Version: 3.4.1
    Data not sync if player is disconnected maybe the developper think it's not an important feature
  9. TravelerJay
    TravelerJay
    4/5,
    Version: 3.4.1
    Plugin works perfectly, would give 5 stars if it supported all economy plugins. The one I currently use does not work with this plugin.
    1. brunyman
      Author's Response
      Hi, thanks for review, please note the economy plugins need to be supported by the Vault plugin.
  10. LightPlay
    LightPlay
    4/5,
    Version: 3.4.1
    Good plugin worked as expected, but I have a small problem, and when I execute the command / eco give (player) [when a player is disconnected] the money says that it is applied and if you go to the mysql it says that if it is applied, but when the player connects the money goes back to the one he was before applying the money he added. that is, if you execute the command / eco give 1000 and the player has 500, he should have 1500 money but the player when entering server does not apply those 1000 and is left with 500. Any solution? Thanks for the plugin!
    1. brunyman
      Author's Response
      Hi, yes, support for essentials economy will need to be added