Class TownyPreTransactionEvent
java.lang.Object
org.bukkit.event.Event
com.palmergames.bukkit.towny.event.CancellableTownyEvent
com.palmergames.bukkit.towny.event.economy.TownyPreTransactionEvent
- All Implemented Interfaces:
org.bukkit.event.Cancellable
An Cancellable event thrown when any
Transaction
is about to occur
because of Towny. This includes players, towns, nations and special accounts
internal to Towny.-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
org.bukkit.event.Event.Result
-
Constructor Summary
ConstructorDescriptionTownyPreTransactionEvent
(Transaction transaction) An Cancellable event thrown when anyTransaction
is about to occur because of Towny. -
Method Summary
Modifier and TypeMethodDescriptionstatic org.bukkit.event.HandlerList
@NotNull org.bukkit.event.HandlerList
double
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
-
TownyPreTransactionEvent
An Cancellable event thrown when anyTransaction
is about to occur because of Towny. This includes players, towns, nations and special accounts internal to Towny.- Parameters:
transaction
-Transaction
which will be occuring.
-
-
Method Details
-
getTransaction
- Returns:
Transaction
which will be occuring.
-
getNewBalance
public double getNewBalance()- Returns:
- the future balance of the
Account
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
-