Class TownPreRuinedEvent

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

public class TownPreRuinedEvent extends CancellableTownyEvent
An event which is fired before Towny puts a Town into a ruined status. If this event is cancelled, Towny will move on to deleting the Town.
Since:
0.98.2.6
Author:
LlmDl
  • Constructor Details

    • TownPreRuinedEvent

      public TownPreRuinedEvent(Town town, DeleteTownEvent.Cause cause, org.bukkit.command.CommandSender sender)
  • Method Details

    • getTown

      public Town getTown()
    • getCause

      @NotNull public DeleteTownEvent.Cause getCause()
      Returns:
      The deletion cause that will put the town into a ruined state.
    • getSender

      @Nullable public @Nullable org.bukkit.command.CommandSender getSender()
      Returns:
      The command sender who is causing the town to go into a ruined state.
    • 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