Class ACurrency.BankProvider
java.lang.Object
com.olziedev.playerauctions.api.expansion.ACurrency.BankProvider
- Enclosing class:
ACurrency
Represents a bank provider that can be used to withdraw money from a bank account.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract doublegetBalance(APlayer aPlayer) Retrieve the balance from a player in this provider.booleanhasBalance(APlayer aPlayer, double amount) Retrieve if the player has the balance specified in this provider.abstract booleanabstract voidWithdraw the amount from the players balance in this provider.
-
Constructor Details
-
BankProvider
public BankProvider()
-
-
Method Details
-
hasBalance
Retrieve if the player has the balance specified in this provider.- Parameters:
aPlayer- The player to that checks the balance for.amount- The amount to check for.- Returns:
- If the player has the amount in this provider.
-
isEnabled
public abstract boolean isEnabled()- Returns:
- If the provider is enabled in the configuration file and is loaded onto the server.
-
getBalance
Retrieve the balance from a player in this provider.- Parameters:
aPlayer- The player to get the balance from.- Returns:
- The balance from the player in this provider.
-
withdraw
Withdraw the amount from the players balance in this provider.- Parameters:
aPlayer- The player to withdraw the currency from.amount- The amount to take from this currency.response- The response of the withdrawal.
-