Package net.md_5.bungee.api.event
Class ChatEvent
java.lang.Object
net.md_5.bungee.api.plugin.Event
net.md_5.bungee.api.event.TargetedEvent
net.md_5.bungee.api.event.ChatEvent
- All Implemented Interfaces:
Cancellable
Event called when a player sends a message to a server.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanChecks whether this message is valid as a commandbooleanChecks whether this message is run on this proxy server.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.md_5.bungee.api.plugin.Cancellable
isCancelled, setCancelled
-
Constructor Details
-
ChatEvent
-
-
Method Details
-
isCommand
public boolean isCommand()Checks whether this message is valid as a command- Returns:
- if this message is a command
-
isProxyCommand
public boolean isProxyCommand()Checks whether this message is run on this proxy server.- Returns:
- if this command runs on the proxy
- See Also:
-