Class FakeKickEvent
java.lang.Object
me.remigio07.chatplugin.api.server.event.punishment.kick.FakeKickEvent
- All Implemented Interfaces:
CancellableEvent,ChatPluginEvent,ChatPluginPlayerEvent,ChatPluginServerPlayerEvent
Represents the event called after a fake kick gets processed.
-
Constructor Summary
ConstructorsConstructorDescriptionFakeKickEvent(ChatPluginServerPlayer player, String reason, KickType type) Constructs a new fake kick event. -
Method Summary
Modifier and TypeMethodDescriptionGets the player involved with this event.Gets the fake kick's reason.getType()Gets the fake kick's type.booleanChecks if this event has been cancelled and will not be executed.voidsetCancelled(boolean cancelled) Sets the cancellation state of this event.Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface me.remigio07.chatplugin.api.common.event.ChatPluginEvent
call
-
Constructor Details
-
FakeKickEvent
Constructs a new fake kick event.- Parameters:
player- Player involvedreason- Fake kick's reasontype- Fake kick's type
-
-
Method Details
-
isCancelled
public boolean isCancelled()Description copied from interface:CancellableEventChecks if this event has been cancelled and will not be executed.- Specified by:
isCancelledin interfaceCancellableEvent- Returns:
- Whether this event is cancelled
-
setCancelled
public void setCancelled(boolean cancelled) Description copied from interface:CancellableEventSets the cancellation state of this event.It will be passed through other registered listeners even if it is cancelled, but it will not be executed.
- Specified by:
setCancelledin interfaceCancellableEvent- Parameters:
cancelled- Whether this event should be cancelled
-
getPlayer
Description copied from interface:ChatPluginServerPlayerEventGets the player involved with this event.- Specified by:
getPlayerin interfaceChatPluginPlayerEvent- Specified by:
getPlayerin interfaceChatPluginServerPlayerEvent- Returns:
- Player involved
-
getReason
Gets the fake kick's reason.- Returns:
- Kick's reason
-
getType
Gets the fake kick's type.- Returns:
- Kick's type
-