Class BankTransactionEvent
java.lang.Object
org.bukkit.event.Event
com.palmergames.bukkit.towny.event.economy.BankTransactionEvent
- Direct Known Subclasses:
NationTransactionEvent
,TownTransactionEvent
public class BankTransactionEvent
extends org.bukkit.event.Event
Called whenever a deposit or withdrawl is made to/from a Bank account
associated with a Town or Nation.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
org.bukkit.event.Event.Result
-
Constructor Summary
ConstructorDescriptionBankTransactionEvent
(Account account, Transaction transaction) Called whenever a deposit or withdrawl is made to/from a Bank account associated with a Town or Nation. -
Method Summary
Modifier and TypeMethodDescriptionstatic org.bukkit.event.HandlerList
org.bukkit.event.HandlerList
Methods inherited from class org.bukkit.event.Event
getEventName, isAsynchronous
-
Constructor Details
-
BankTransactionEvent
Called whenever a deposit or withdrawl is made to/from a Bank account associated with a Town or Nation.- Parameters:
account
-Account
which is an economy account.transaction
-Transaction
which has happened.
-
-
Method Details
-
getHandlers
public org.bukkit.event.HandlerList getHandlers()- Specified by:
getHandlers
in classorg.bukkit.event.Event
-
getHandlerList
public static org.bukkit.event.HandlerList getHandlerList() -
getAccount
- Returns:
Account
which is receiving or giving money. This will be aBankAccount
.
-
getTransaction
- Returns:
Transaction
which is occuring.
-