Class TownRuinedEvent

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

public class TownRuinedEvent extends org.bukkit.event.Event
  • Constructor Details

    • TownRuinedEvent

      public TownRuinedEvent(Town town, String oldMayorName)
  • 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()
    • getTown

      public Town getTown()
      The town which is falling into ruin.
      Returns:
      town which is falling into ruin.
    • getOldMayorName

      public String getOldMayorName()
      The name of the previous mayor. Might return "none" if no mayor was present upon ruining due to a bug.