Class TownReclaimedEvent

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

public class TownReclaimedEvent extends org.bukkit.event.Event
  • Nested Class Summary

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

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

    Constructors
    Constructor
    Description
    TownReclaimedEvent(Town town, Resident resident)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static org.bukkit.event.HandlerList
     
    org.bukkit.event.HandlerList
     
    The resident who is reclaiming the town, and will become the new mayor.
    The ruined town which has been reclaimed.

    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

    • TownReclaimedEvent

      public TownReclaimedEvent(Town town, Resident resident)
  • 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 ruined town which has been reclaimed.
      Returns:
      town which is being reclaimed.
    • getResident

      public Resident getResident()
      The resident who is reclaiming the town, and will become the new mayor.
      Returns:
      resident who will be mayor.