Class BankTransactionEvent

java.lang.Object
org.bukkit.event.Event
com.palmergames.bukkit.towny.event.economy.BankTransactionEvent
Direct Known Subclasses:
NationTransactionEvent, TownTransactionEvent

public class BankTransactionEvent extends org.bukkit.event.Event
Called whenever a deposit or withdrawl is made to/from a Bank account associated with a Town or Nation.
  • Constructor Details

    • BankTransactionEvent

      public BankTransactionEvent(Account account, Transaction transaction)
      Called whenever a deposit or withdrawl is made to/from a Bank account associated with a Town or Nation.
      Parameters:
      account - Account which is an economy account.
      transaction - Transaction which has happened.
  • Method Details

    • getHandlers

      public org.bukkit.event.HandlerList getHandlers()
      Specified by:
      getHandlers in class org.bukkit.event.Event
    • getHandlerList

      public static org.bukkit.event.HandlerList getHandlerList()
    • getAccount

      public Account getAccount()
      Returns:
      Account which is receiving or giving money. This will be a BankAccount.
    • getTransaction

      public Transaction getTransaction()
      Returns:
      Transaction which is occuring.