message
Builds and sends a chat message to this Audience.
Works on any platform whose sender implements Audience (Paper, Velocity, …).
Builds and sends a simple text message to this Audience.
Builds and sends a styled text message to this Audience.
Builds and sends a component-based message to this Audience.
Builds a new chat message.
The API is designed to be used with declarative style kotlin syntax. Example:
message {
text("Foo") {
color(GREEN)
bold()
runCommand("/bar")
}
}This results in a message displaying "Foo" in bold green font and executing the command "/bar" when the user clicks on it.
Parameters
The function to construct the message for declarative style syntax.
Convenience method to build a simple single component message. For more flexible messages, use the overloaded version.
Parameters
The message text
A function to apply text formatting in declarative syntax.
Convenience method to build a simple single component message. For more flexible messages, use the overloaded version.
Parameters
The component to use as base
A function to apply text formatting in declarative syntax.
Convenience method to build a simple colorized message. For more flexible messages, use the overloaded version.
Parameters
The message text.
The text color.