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, getSender
public 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 Cancellable
public String getMessage()
public void setCancelled(boolean cancelled)
setCancelled
in interface Cancellable
cancelled
- the state to setpublic void setMessage(String message)
public String toString()
toString
in class TargetedEvent
public boolean equals(Object o)
equals
in class TargetedEvent
protected boolean canEqual(Object other)
canEqual
in class TargetedEvent
public int hashCode()
hashCode
in class TargetedEvent
Copyright © 2012–2020 SpigotMC. All rights reserved.