sendMessage
Sends an Adventure Component message to the player.
Use this method for rich text formatting with colors, hover effects, and click events.
Example:
player.edit {
sendMessage(Component.text("Hello!", NamedTextColor.GOLD))
}Content copied to clipboard
Parameters
message
The Adventure Component to send.
Sends a plain text message to the player.
The message is automatically converted to an Adventure Component.
Example:
player.edit {
sendMessage("Welcome to the server!")
}Content copied to clipboard
Parameters
message
The plain text message to send.