public class ChatEvent extends TargetedEvent implements Cancellable
| Constructor and Description |
|---|
ChatEvent(Connection sender,
Connection receiver,
String message) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
canEqual(Object other) |
boolean |
equals(Object o) |
String |
getMessage()
Text contained in this chat.
|
int |
hashCode() |
boolean |
isCancelled()
Cancelled state.
|
boolean |
isCommand()
Checks whether this message is valid as a command
|
boolean |
isProxyCommand()
Checks whether this message is run on this proxy server.
|
void |
setCancelled(boolean cancelled)
Cancelled state.
|
void |
setMessage(String message)
Text contained in this chat.
|
String |
toString() |
getReceiver, getSenderpublic ChatEvent(Connection sender, Connection receiver, String message)
public boolean isCommand()
public boolean isProxyCommand()
PluginManager.isExecutableCommand(java.lang.String,
net.md_5.bungee.api.CommandSender)public boolean isCancelled()
isCancelled in interface Cancellablepublic String getMessage()
public void setCancelled(boolean cancelled)
setCancelled in interface Cancellablecancelled - the state to setpublic void setMessage(String message)
public String toString()
toString in class TargetedEventpublic boolean equals(Object o)
equals in class TargetedEventprotected boolean canEqual(Object other)
canEqual in class TargetedEventpublic int hashCode()
hashCode in class TargetedEventCopyright © 2012–2020 SpigotMC. All rights reserved.