Class ConfirmationCancelEvent
java.lang.Object
org.bukkit.event.Event
com.palmergames.bukkit.towny.confirmations.event.ConfirmationEvent
com.palmergames.bukkit.towny.confirmations.event.ConfirmationCancelEvent
Called after a
Confirmation
is successfully cancelled, either due to timing out or due to the sender cancelling it manually.-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
org.bukkit.event.Event.Result
-
Constructor Summary
ConstructorDescriptionConfirmationCancelEvent
(Confirmation confirmation, org.bukkit.command.CommandSender sender, boolean timeout) -
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull org.bukkit.event.HandlerList
@NotNull org.bukkit.event.HandlerList
boolean
Methods inherited from class com.palmergames.bukkit.towny.confirmations.event.ConfirmationEvent
getConfirmation, getSender
Methods inherited from class org.bukkit.event.Event
getEventName, isAsynchronous
-
Constructor Details
-
ConfirmationCancelEvent
public ConfirmationCancelEvent(Confirmation confirmation, org.bukkit.command.CommandSender sender, boolean timeout)
-
-
Method Details
-
isTimeout
public boolean isTimeout()- Returns:
- Whether this confirmation was cancelled due to timing out.
-
getHandlers
@NotNull public @NotNull org.bukkit.event.HandlerList getHandlers()- Specified by:
getHandlers
in classorg.bukkit.event.Event
-
getHandlerList
@NotNull public static @NotNull org.bukkit.event.HandlerList getHandlerList()
-