Class MySQLAccountManager

java.lang.Object
dev.satyrn.xpeconomy.economy.PlayerAccountManagerBase
dev.satyrn.xpeconomy.economy.MySQLAccountManager
All Implemented Interfaces:
AccountManager

public final class MySQLAccountManager extends PlayerAccountManagerBase
An account manager with a MySQL backend.
  • Constructor Details

    • MySQLAccountManager

      public MySQLAccountManager(Configuration configuration, org.bukkit.plugin.Plugin plugin, dev.satyrn.papermc.api.storage.v1.ConnectionManager connectionManager)
      Creates a new account manager with a MySQL backend.
      Parameters:
      plugin - The plugin instance.
      configuration - The configuration instance.
      connectionManager - The connection manager.
  • Method Details

    • load

      public void load()
      Loads account details from the database.
    • save

      public void save()
      Saves the accounts to the database in a new thread.