Class PreDeleteNationEvent
java.lang.Object
org.bukkit.event.Event
com.palmergames.bukkit.towny.event.CancellableTownyEvent
com.palmergames.bukkit.towny.event.PreDeleteNationEvent
- 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
ConstructorDescriptionPreDeleteNationEvent
(@NotNull Nation nation, DeleteNationEvent.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
-
PreDeleteNationEvent
public PreDeleteNationEvent(@NotNull @NotNull Nation nation, @NotNull DeleteNationEvent.Cause cause, @Nullable @Nullable org.bukkit.command.CommandSender sender)
-
-
Method Details
-
getNationName
- Returns:
- the deleted nation name.
-
getNation
- Returns:
- the deleted nation 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
-