Class TownTransactionEvent

java.lang.Object
org.bukkit.event.Event
com.palmergames.bukkit.towny.event.economy.BankTransactionEvent
com.palmergames.bukkit.towny.event.economy.TownTransactionEvent

public class TownTransactionEvent extends BankTransactionEvent
An event thrown when a Town BankAccount either receives or pays money.
  • Constructor Details

    • TownTransactionEvent

      public TownTransactionEvent(Town town, Transaction transaction)
      An event thrown when a Town BankAccount either receives or pays money.
      Parameters:
      town - Town whose account which is paying or receiving money.
      transaction - Transaction which has occured.
  • Method Details

    • getTown

      public Town getTown()
      Returns:
      town
    • getTownBankAccount

      public BankAccount getTownBankAccount()
      Returns:
      BankAccount belonging to the town.