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
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Attempts to add money to an account.void
deleteAccount
(Account account) Removes an account.double
getBalance
(Account account) Gets the balance of the account.boolean
hasAccount
(Account account) Checks whether the given account exists.void
newAccount
(Account account) Attempts to create an account.boolean
setBalance
(Account account, double amount) Sets the balance of the account.boolean
Attempts 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:EconomyAdapter
Attempts to add money to an account.- Specified by:
add
in interfaceEconomyAdapter
- Overrides:
add
in classReserveEconomyAdapter
- Parameters:
account
- The account.amount
- The amount to add.- Returns:
- A boolean indicating success.
-
subtract
Description copied from interface:EconomyAdapter
Attempts to subtract money from an account.- Specified by:
subtract
in interfaceEconomyAdapter
- Overrides:
subtract
in classReserveEconomyAdapter
- Parameters:
account
- The account.amount
- The amount to add.- Returns:
- A boolean indicating success.
-
hasAccount
Description copied from interface:EconomyAdapter
Checks whether the given account exists.- Specified by:
hasAccount
in interfaceEconomyAdapter
- Overrides:
hasAccount
in classReserveEconomyAdapter
- Parameters:
account
- The account.- Returns:
- A boolean indicating success.
-
getBalance
Description copied from interface:EconomyAdapter
Gets the balance of the account.- Specified by:
getBalance
in interfaceEconomyAdapter
- Overrides:
getBalance
in classReserveEconomyAdapter
- Parameters:
account
- The account.- Returns:
- A boolean indicating success.
-
newAccount
Description copied from interface:EconomyAdapter
Attempts to create an account.- Specified by:
newAccount
in interfaceEconomyAdapter
- Overrides:
newAccount
in classReserveEconomyAdapter
- Parameters:
account
- The name of the new account.
-
deleteAccount
Description copied from interface:EconomyAdapter
Removes an account.- Specified by:
deleteAccount
in interfaceEconomyAdapter
- Overrides:
deleteAccount
in classReserveEconomyAdapter
- Parameters:
account
- The name of the account to remove.
-
setBalance
Description copied from interface:EconomyAdapter
Sets the balance of the account.- Specified by:
setBalance
in interfaceEconomyAdapter
- Overrides:
setBalance
in classReserveEconomyAdapter
- Parameters:
account
- The account.amount
- The amount to add.- Returns:
- A boolean indicating success.
-