Class TownPreTransactionEvent
java.lang.Object
org.bukkit.event.Event
com.palmergames.bukkit.towny.event.CancellableTownyEvent
com.palmergames.bukkit.towny.event.economy.TownPreTransactionEvent
- All Implemented Interfaces:
org.bukkit.event.Cancellable
An Cancellable event thrown when a
Town
BankAccount
is about
to either receive or pay money.-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
org.bukkit.event.Event.Result
-
Constructor Summary
ConstructorDescriptionTownPreTransactionEvent
(Town town, Transaction transaction) An Cancellable event thrown when aTown
BankAccount
is about to either receive or pay money. -
Method Summary
Modifier and TypeMethodDescriptionstatic org.bukkit.event.HandlerList
@NotNull org.bukkit.event.HandlerList
int
getTown()
Methods inherited from class com.palmergames.bukkit.towny.event.CancellableTownyEvent
getCancelMessage, isCancelled, setCancelled, setCancelMessage
Methods inherited from class org.bukkit.event.Event
getEventName, isAsynchronous
-
Constructor Details
-
TownPreTransactionEvent
An Cancellable event thrown when aTown
BankAccount
is about to either receive or pay money.- Parameters:
town
-Town
whose account which is paying or receiving money.transaction
-Transaction
which will be occuring.
-
-
Method Details
-
getTown
- Returns:
Town
-
getTransaction
- Returns:
Transaction
which will be occuring.
-
getNewBalance
public int getNewBalance()- Returns:
- the future balance of the Town
BankAccount
if this event is not cancelled.
-
getHandlerList
public static org.bukkit.event.HandlerList getHandlerList() -
getHandlers
@NotNull public @NotNull org.bukkit.event.HandlerList getHandlers()- Specified by:
getHandlers
in classorg.bukkit.event.Event
-