to

fun to(player: Player): MessageBuilder

Sets the target of the message to a specific player.

Return

The MessageBuilder instance for method chaining.

Parameters

player

The player who will receive the message.


fun to(sender: CommandSender): MessageBuilder

Sets the target of the message to a specific sender (could be player or console).

Return

The MessageBuilder instance for method chaining.

Parameters

sender

The sender who will receive the message.