public static interface MessageChannelEvent.Chat extends MessageChannelEvent, Cancellable
Text being sent to a MessageChannel was
due to chatting.MessageChannelEvent.ChatMessageEvent.DefaultBodyApplier, MessageEvent.DefaultHeaderApplier, MessageEvent.MessageFormatterPARAM_MESSAGE_BODY, PARAM_MESSAGE_FOOTER, PARAM_MESSAGE_HEADER| Modifier and Type | Method and Description |
|---|---|
Text |
getRawMessage()
Gets the 'raw' chat message.
|
getChannel, getOriginalChannel, setChannelclearMessage, getFormatter, getMessage, getOriginalMessage, isMessageCancelled, setMessage, setMessage, setMessage, setMessageCancelledgetCause, getContext, getSourceisCancelled, setCancelledText 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).