Class VaultEconomyAdapter.Legacy
java.lang.Object
com.palmergames.bukkit.towny.object.economy.adapter.VaultEconomyAdapter
com.palmergames.bukkit.towny.object.economy.adapter.VaultEconomyAdapter.Legacy
- All Implemented Interfaces:
EconomyAdapter
- Enclosing class:
VaultEconomyAdapter
-
Nested Class Summary
Nested classes/interfaces inherited from class com.palmergames.bukkit.towny.object.economy.adapter.VaultEconomyAdapter
VaultEconomyAdapter.Legacy -
Field Summary
Fields inherited from class com.palmergames.bukkit.towny.object.economy.adapter.VaultEconomyAdapter
economy -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanAttempts to add money to an account.doublegetBalance(Account account) Gets the balance of the account.booleanhasAccount(Account account) Checks whether the given account exists.voidnewAccount(Account account) Attempts to create an account.booleanAttempts to subtract money from an account.Methods inherited from class com.palmergames.bukkit.towny.object.economy.adapter.VaultEconomyAdapter
deleteAccount, getFormattedBalance, name, renameAccount, setBalance
-
Constructor Details
-
Legacy
public Legacy(net.milkbowl.vault.economy.Economy economy)
-
-
Method Details
-
add
Description copied from interface:EconomyAdapterAttempts to add money to an account.- Specified by:
addin interfaceEconomyAdapter- Overrides:
addin classVaultEconomyAdapter- Parameters:
account- The account.amount- The amount to add.- Returns:
- A boolean indicating success.
-
subtract
Description copied from interface:EconomyAdapterAttempts to subtract money from an account.- Specified by:
subtractin interfaceEconomyAdapter- Overrides:
subtractin classVaultEconomyAdapter- Parameters:
account- The account.amount- The amount to add.- Returns:
- A boolean indicating success.
-
hasAccount
Description copied from interface:EconomyAdapterChecks whether the given account exists.- Specified by:
hasAccountin interfaceEconomyAdapter- Overrides:
hasAccountin classVaultEconomyAdapter- Parameters:
account- The account.- Returns:
- A boolean indicating success.
-
getBalance
Description copied from interface:EconomyAdapterGets the balance of the account.- Specified by:
getBalancein interfaceEconomyAdapter- Overrides:
getBalancein classVaultEconomyAdapter- Parameters:
account- The account.- Returns:
- A boolean indicating success.
-
newAccount
Description copied from interface:EconomyAdapterAttempts to create an account.- Specified by:
newAccountin interfaceEconomyAdapter- Overrides:
newAccountin classVaultEconomyAdapter- Parameters:
account- The name of the new account.
-