Class PreDeleteTownEvent
java.lang.Object
org.bukkit.event.Event
com.palmergames.bukkit.towny.event.CancellableTownyEvent
com.palmergames.bukkit.towny.event.PreDeleteTownEvent
- All Implemented Interfaces:
org.bukkit.event.Cancellable
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
org.bukkit.event.Event.Result
-
Constructor Summary
ConstructorDescriptionPreDeleteTownEvent
(@NotNull Town town, DeleteTownEvent.Cause cause, @Nullable 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
-
PreDeleteTownEvent
public PreDeleteTownEvent(@NotNull @NotNull Town town, @NotNull DeleteTownEvent.Cause cause, @Nullable @Nullable org.bukkit.command.CommandSender sender)
-
-
Method Details
-
getTownName
- Returns:
- the deleted towns name.
-
getTown
- Returns:
- the deleted town object.
-
getCause
-
getSender
@Nullable public @Nullable org.bukkit.command.CommandSender getSender()- Returns:
- The command sender who caused the deletion.
-
getSenderResident
- Returns:
- The
getSender()
as a resident.
-
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
-