Class ConfirmationSendEvent
java.lang.Object
org.bukkit.event.Event
com.palmergames.bukkit.towny.confirmations.event.ConfirmationEvent
com.palmergames.bukkit.towny.confirmations.event.ConfirmationSendEvent
- All Implemented Interfaces:
org.bukkit.event.Cancellable
public class ConfirmationSendEvent
extends ConfirmationEvent
implements org.bukkit.event.Cancellable
Called when a
Confirmation is about to be sent to a CommandSender-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
org.bukkit.event.Event.Result -
Constructor Summary
ConstructorsConstructorDescriptionConfirmationSendEvent(Confirmation confirmation, org.bukkit.command.CommandSender sender) -
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull org.bukkit.event.HandlerList@NotNull org.bukkit.event.HandlerListbooleanbooleanvoidsetCancelled(boolean cancelled) voidsetCancelMessage(String cancelMessage) voidsetSendMessage(boolean sendMessage) Methods inherited from class com.palmergames.bukkit.towny.confirmations.event.ConfirmationEvent
getConfirmation, getSenderMethods inherited from class org.bukkit.event.Event
callEvent, getEventName, isAsynchronous
-
Constructor Details
-
ConfirmationSendEvent
-
-
Method Details
-
isCancelled
public boolean isCancelled()- Specified by:
isCancelledin interfaceorg.bukkit.event.Cancellable
-
setCancelled
public void setCancelled(boolean cancelled) - Specified by:
setCancelledin interfaceorg.bukkit.event.Cancellable
-
isSendingMessage
public boolean isSendingMessage()- Returns:
- Whether the confirmation will be sent in chat using
TownyMessaging.sendConfirmationMessage(CommandSender, Confirmation).
-
setSendMessage
public void setSendMessage(boolean sendMessage) -
getCancelMessage
-
setCancelMessage
-
getHandlers
@NotNull public @NotNull org.bukkit.event.HandlerList getHandlers()- Specified by:
getHandlersin classorg.bukkit.event.Event
-
getHandlerList
@NotNull public static @NotNull org.bukkit.event.HandlerList getHandlerList()
-