Class TownKickEvent

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

public class TownKickEvent extends CancellableTownyEvent
Event that gets fired when a resident gets kicked from a town.
  • Constructor Details

    • TownKickEvent

      public TownKickEvent(Resident kickedResident, Object kicker)
  • Method Details

    • getKickedResident

      public Resident getKickedResident()
    • getTown

      public Town getTown()
    • getKicker

      public Object getKicker()
      Gets whoever kicked the resident. Can either be an instance of Player or CommandSender.
      Returns:
      The kicker.
    • 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