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, or a server sends a
message to a player.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanChecks whether this message is valid as a commandMethods 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
-