Class F3ServerNameSendEvent
java.lang.Object
me.remigio07.chatplugin.api.server.event.f3servername.F3ServerNameSendEvent
- All Implemented Interfaces:
CancellableEvent,ChatPluginEvent,ChatPluginPlayerEvent,ChatPluginServerPlayerEvent
public class F3ServerNameSendEvent
extends Object
implements CancellableEvent, ChatPluginServerPlayerEvent
Represents an event called when an
F3ServerName is sent to a player.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionF3ServerNameSendEvent(F3ServerName f3ServerName, ChatPluginServerPlayer player) Constructs a new F3 server name send event. -
Method Summary
Modifier and TypeMethodDescriptionGets the F3 server name sent to the player.Gets the player involved with this event.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
-
F3ServerNameSendEvent
Constructs a new F3 server name send event.- Parameters:
f3ServerName- F3 server name involvedplayer- Player involved
-
-
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
-
getF3ServerName
Gets the F3 server name sent to the player.- Returns:
- F3 server name sent
-