Package dev.satyrn.xpeconomy.economy
Class MySQLAccountManager
java.lang.Object
dev.satyrn.xpeconomy.economy.PlayerAccountManagerBase
dev.satyrn.xpeconomy.economy.MySQLAccountManager
- All Implemented Interfaces:
AccountManager
An account manager with a MySQL backend.
-
Field Summary
Fields inherited from class dev.satyrn.xpeconomy.economy.PlayerAccountManagerBase
accounts, configuration
-
Constructor Summary
ConstructorDescriptionMySQLAccountManager
(Configuration configuration, org.bukkit.plugin.Plugin plugin, dev.satyrn.papermc.api.storage.v1.ConnectionManager connectionManager) Creates a new account manager with a MySQL backend. -
Method Summary
Methods inherited from class dev.satyrn.xpeconomy.economy.PlayerAccountManagerBase
createAccount, getAccount, getEconomyMethod, getStartingBalance, hasAccount
-
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.
-