Message
A basic formatted Chat Message.
The text can be formatted, but no interactions are allowed. Use ClickableMessage to allow user interaction with the message. Formatting is inherited to all text components but can be overwritten by individual text components. To start building a message use message and declarative style kotlin syntax.
Functions
Link copied to clipboard
Adds a new text component from a legacy message formatted with § and color codes. Useful for things such as player display names.
Link copied to clipboard
Obfuscates text by switching each letter between multiple characters. Will result in non-readable text.
Link copied to clipboard
Strikes the text through.
Link copied to clipboard
Converts the message to a Component to use with the Chat API.
Link copied to clipboard
Underlines the text.