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
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
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
org.bukkit.event.Event.Result
-
Constructor Summary
ConstructorDescriptionTownPreRuinedEvent
(Town town, DeleteTownEvent.Cause cause, org.bukkit.command.CommandSender sender) -
Method Summary
Methods inherited from class com.palmergames.bukkit.towny.event.CancellableTownyEvent
getCancelMessage, isCancelled, setCancelled, setCancelMessage
Methods inherited from class org.bukkit.event.Event
getEventName, isAsynchronous
-
Constructor Details
-
TownPreRuinedEvent
public TownPreRuinedEvent(Town town, DeleteTownEvent.Cause cause, org.bukkit.command.CommandSender sender)
-
-
Method Details
-
getTown
-
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 classorg.bukkit.event.Event
-