Class TownLeaveEvent

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

public class TownLeaveEvent extends CancellableTownyEvent
  • Constructor Details

    • TownLeaveEvent

      public TownLeaveEvent(Resident resident, Town town)
  • Method Details

    • getTown

      public Town getTown()
      Returns:
      Town which is about to lose the resident.
    • getResident

      public Resident getResident()
      Returns:
      Resident which is about to leave their town.
    • 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