CommandSender.sendMessage

Sends a message to the command sender. The message can contain formatting codes and translations.

interface CommandSender
final
void
sendMessage
(
E...
)
()

Examples

sender.sendMessage("Hello");
sender.sendMessage(Format.blue, "This is a blue message");
sender.sendMessage(Format.yellow, Translation("multiplayer.player.joined", "Steve"));

Meta