Class TownUpkeepCostPaidEvent

java.lang.Object
org.bukkit.event.Event
com.palmergames.bukkit.towny.event.town.TownUpkeepCostPaidEvent

public class TownUpkeepCostPaidEvent extends org.bukkit.event.Event
Fired when a nation has paid upkeep costs.
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.bukkit.event.Event

    org.bukkit.event.Event.Result
  • Constructor Summary

    Constructors
    Constructor
    Description
    TownUpkeepCostPaidEvent(Town town, double upkeep, double upkeepPenalty)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static org.bukkit.event.HandlerList
     
    @NotNull org.bukkit.event.HandlerList
     
    @NotNull Town
    Returns The town which is paying the upkeep cost.
    double
    Returns the upkeep cost for this nation, may be positive or negative.
    double
    Returns the upkeep penalty that was charged for this town, may be 0 or above.

    Methods inherited from class org.bukkit.event.Event

    getEventName, isAsynchronous

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • TownUpkeepCostPaidEvent

      @Internal public TownUpkeepCostPaidEvent(Town town, double upkeep, double upkeepPenalty)
  • Method Details

    • getTown

      @NotNull public @NotNull Town getTown()
      Returns The town which is paying the upkeep cost.
      Returns:
      The town which is paying the upkeep cost
    • getUpkeep

      public double getUpkeep()
      Returns the upkeep cost for this nation, may be positive or negative.
      Returns:
      the upkeep cost for this nation, may be positive or negative
    • getUpkeepPenalty

      public double getUpkeepPenalty()
      Returns the upkeep penalty that was charged for this town, may be 0 or above.
      Returns:
      the upkeep penalty that was charged for this town, may be 0 or above
    • 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