Class PlayerFailCheckEvent
java.lang.Object
org.bukkit.event.Event
studio.thevipershow.safechat.api.events.ChatCheckEvent
studio.thevipershow.safechat.api.events.PlayerFailCheckEvent
- All Implemented Interfaces:
org.bukkit.event.Cancellable
public class PlayerFailCheckEvent extends ChatCheckEvent implements org.bukkit.event.Cancellable
This check is called when a player has failed one of the loaded chat checks.
This check is cancellable: doing so will make the player pass correctly the check.
This event is not synchronized with the minecraft server's main thread.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
org.bukkit.event.Event.Result -
Field Summary
Fields Modifier and Type Field Description static org.bukkit.event.HandlerListhandlerList -
Constructor Summary
Constructors Constructor Description PlayerFailCheckEvent(@NotNull Check check, @NotNull ChatData chatData) -
Method Summary
Modifier and Type Method Description @NotNull ChatDatagetChatData()Get the data of this event.static @NotNull org.bukkit.event.HandlerListgetHandlerList()@NotNull org.bukkit.event.HandlerListgetHandlers()booleanisCancelled()Gets the cancellation state of this event.voidsetCancelled(boolean cancel)Sets the cancellation state of this event.Methods inherited from class studio.thevipershow.safechat.api.events.ChatCheckEvent
getCheckMethods inherited from class org.bukkit.event.Event
getEventName, isAsynchronousMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
handlerList
public static final org.bukkit.event.HandlerList handlerList
-
-
Constructor Details
-
PlayerFailCheckEvent
-
-
Method Details
-
getHandlerList
@NotNull public static @NotNull org.bukkit.event.HandlerList getHandlerList() -
isCancelled
public final boolean isCancelled()Gets the cancellation state of this event. A cancelled event will not be executed in the server, but will still pass to other plugins- Specified by:
isCancelledin interfaceorg.bukkit.event.Cancellable- Returns:
- true if this event is cancelled
-
setCancelled
public final void setCancelled(boolean cancel)Sets the cancellation state of this event. A cancelled event will not be executed in the server, but will still pass to other plugins.- Specified by:
setCancelledin interfaceorg.bukkit.event.Cancellable- Parameters:
cancel- true if you wish to cancel this event
-
getChatData
Get the data of this event.- Returns:
- The data of the event.
-
getHandlers
@NotNull public final @NotNull org.bukkit.event.HandlerList getHandlers()- Specified by:
getHandlersin classorg.bukkit.event.Event
-