Class NationPreTransactionEvent
java.lang.Object
org.bukkit.event.Event
com.palmergames.bukkit.towny.event.CancellableTownyEvent
com.palmergames.bukkit.towny.event.economy.NationPreTransactionEvent
- All Implemented Interfaces:
org.bukkit.event.Cancellable
An Cancellable event thrown when a
Nation
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
ConstructorDescriptionNationPreTransactionEvent
(Nation nation, Transaction transaction) An Cancellable event thrown when aNation
BankAccount
is about to either receive or pay money. -
Method Summary
Modifier and TypeMethodDescriptionstatic org.bukkit.event.HandlerList
@NotNull org.bukkit.event.HandlerList
int
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
-
NationPreTransactionEvent
An Cancellable event thrown when aNation
BankAccount
is about to either receive or pay money.- Parameters:
nation
-Nation
whose account which is paying or receiving money.transaction
-Transaction
which will be occuring.
-
-
Method Details
-
getNation
- Returns:
Nation
-
getTransaction
- Returns:
Transaction
which will be occuring.
-
getNewBalance
public int getNewBalance()- Returns:
- the future balance of the Nation
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
-