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
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Checks whether this message is valid as a commandboolean
Checks 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, wait
Methods 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:
-