Class Transaction
java.lang.Object
com.palmergames.bukkit.towny.object.economy.transaction.Transaction
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic TransactionBuilder
add
(double amount) static TransactionBuilder
deposit
(double amount) double
@Nullable Account
@Nullable Account
@Nullable org.bukkit.entity.Player
In the case of a Transaction where a player deposits money into a town or nation bank, this will return the player, or null if it is not a transaction where a player sent money.getType()
boolean
boolean
static TransactionBuilder
subtract
(double amount) static TransactionBuilder
withdraw
(double amount)
-
Constructor Details
-
Transaction
-
-
Method Details
-
add
-
subtract
-
deposit
-
withdraw
-
getType
-
getReceivingAccount
-
hasReceiverAccount
public boolean hasReceiverAccount() -
getSendingAccount
-
hasSenderAccount
public boolean hasSenderAccount() -
getSendingPlayer
@Nullable public @Nullable org.bukkit.entity.Player getSendingPlayer()In the case of a Transaction where a player deposits money into a town or nation bank, this will return the player, or null if it is not a transaction where a player sent money.- Returns:
- the Player that sent money or null.
-
getAmount
public double getAmount()
-