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

public class NationPreTransactionEvent extends CancellableTownyEvent
An Cancellable event thrown when a Nation BankAccount is about to either receive or pay money.
  • Constructor Details

    • NationPreTransactionEvent

      public NationPreTransactionEvent(Nation nation, Transaction transaction)
      An Cancellable event thrown when a Nation 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

      public Nation getNation()
      Returns:
      Nation
    • getTransaction

      public Transaction 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 class org.bukkit.event.Event