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
public class ChatEvent extends TargetedEvent implements Cancellable
Event called when a player sends a message to a server.
-
-
Constructor Summary
Constructors Constructor Description ChatEvent(Connection sender, Connection receiver, String message)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisCommand()Checks whether this message is valid as a commandbooleanisProxyCommand()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 Detail
-
ChatEvent
public ChatEvent(Connection sender, Connection receiver, String message)
-
-
Method Detail
-
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:
PluginManager.isExecutableCommand(java.lang.String, net.md_5.bungee.api.CommandSender)
-
-