Class ReserveEconomyAdapter.Legacy
java.lang.Object
com.palmergames.bukkit.towny.object.economy.adapter.ReserveEconomyAdapter
com.palmergames.bukkit.towny.object.economy.adapter.ReserveEconomyAdapter.Legacy
- All Implemented Interfaces:
EconomyAdapter
- Enclosing class:
ReserveEconomyAdapter
-
Nested Class Summary
Nested classes/interfaces inherited from class com.palmergames.bukkit.towny.object.economy.adapter.ReserveEconomyAdapter
ReserveEconomyAdapter.Legacy -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanAttempts to add money to an account.voiddeleteAccount(Account account) Removes 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.booleansetBalance(Account account, double amount) Sets the balance of the account.booleanAttempts to subtract money from an account.Methods inherited from class com.palmergames.bukkit.towny.object.economy.adapter.ReserveEconomyAdapter
getFormattedBalance, name, renameAccount
-
Constructor Details
-
Legacy
public Legacy(net.tnemc.core.economy.EconomyAPI economy)
-
-
Method Details
-
add
Description copied from interface:EconomyAdapterAttempts to add money to an account.- Specified by:
addin interfaceEconomyAdapter- Overrides:
addin classReserveEconomyAdapter- 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 classReserveEconomyAdapter- 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 classReserveEconomyAdapter- 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 classReserveEconomyAdapter- 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 classReserveEconomyAdapter- Parameters:
account- The name of the new account.
-
deleteAccount
Description copied from interface:EconomyAdapterRemoves an account.- Specified by:
deleteAccountin interfaceEconomyAdapter- Overrides:
deleteAccountin classReserveEconomyAdapter- Parameters:
account- The name of the account to remove.
-
setBalance
Description copied from interface:EconomyAdapterSets the balance of the account.- Specified by:
setBalancein interfaceEconomyAdapter- Overrides:
setBalancein classReserveEconomyAdapter- Parameters:
account- The account.amount- The amount to add.- Returns:
- A boolean indicating success.
-