Package dev.satyrn.xpeconomy.economy
Class YamlAccountManager
java.lang.Object
dev.satyrn.xpeconomy.economy.PlayerAccountManagerBase
dev.satyrn.xpeconomy.economy.YamlAccountManager
- All Implemented Interfaces:
AccountManager
An account manager with a YAML file backend.
-
Field Summary
Fields inherited from class dev.satyrn.xpeconomy.economy.PlayerAccountManagerBase
accounts, configuration
-
Constructor Summary
ConstructorDescriptionYamlAccountManager
(Configuration configuration, org.bukkit.plugin.Plugin plugin) Creates a new instance of an account manager with a YAML backend. -
Method Summary
Methods inherited from class dev.satyrn.xpeconomy.economy.PlayerAccountManagerBase
createAccount, getAccount, getEconomyMethod, getStartingBalance, hasAccount
-
Constructor Details
-
YamlAccountManager
Creates a new instance of an account manager with a YAML backend.- Parameters:
plugin
- The plugin instance.
-
-
Method Details
-
load
public void load()Loads account data from a YAML file. -
save
public void save()Saves account data to a YAML file.
-