public static interface MessageChannelEvent.Chat extends MessageChannelEvent, Cancellable
Text
being sent to a MessageChannel
was
due to chatting.MessageChannelEvent.Chat
MessageEvent.DefaultBodyApplier, MessageEvent.DefaultHeaderApplier, MessageEvent.MessageFormatter
PARAM_MESSAGE_BODY, PARAM_MESSAGE_FOOTER, PARAM_MESSAGE_HEADER
Modifier and Type | Method and Description |
---|---|
Text |
getRawMessage()
Gets the 'raw' chat message.
|
getChannel, getOriginalChannel, setChannel
clearMessage, getFormatter, getMessage, getOriginalMessage, isMessageCancelled, setMessage, setMessage, setMessage, setMessageCancelled
getCause, getContext, getSource
isCancelled, setCancelled
Text getRawMessage()
This message is the original chat message, without any formatting whatsoever.
In Vanilla, this is equivalent to what a player typed into the chat box (no name prefix or other elements).