Class TownPreReclaimEvent

java.lang.Object
org.bukkit.event.Event
com.palmergames.bukkit.towny.event.CancellableTownyEvent
com.palmergames.bukkit.towny.event.town.TownPreReclaimEvent
All Implemented Interfaces:
org.bukkit.event.Cancellable

public class TownPreReclaimEvent extends CancellableTownyEvent
  • Constructor Details

    • TownPreReclaimEvent

      public TownPreReclaimEvent(Town town, Resident resident, org.bukkit.entity.Player player)
      Event thrown prior to a Town being reclaimed by a Resident.
      Parameters:
      town - The Town being reclaimed.
      resident - The resident who would become mayor.
      player - The Player who would become mayor.
  • Method Details

    • getTown

      @Nullable public @Nullable Town getTown()
      Returns:
      the Town which will be reclaimed.
    • getResident

      public Resident getResident()
      Returns:
      the resident who will become mayor.
    • getPlayer

      public org.bukkit.entity.Player getPlayer()
      Returns:
      the player who will become mayor.
    • 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