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

public class TownyPreTransactionEvent extends CancellableTownyEvent
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.
  • Constructor Details

    • TownyPreTransactionEvent

      public TownyPreTransactionEvent(Transaction transaction)
      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.
      Parameters:
      transaction - Transaction which will be occuring.
  • Method Details

    • getTransaction

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