send

Sends a message to a player or a commandsender.

Parameters

message
the message to send the player
player
a player to use for PlaceholderAPI's placeholders
fun CommandSender.send(message: String, player: Player?)
Send multiple messsages at once to a commandsender or player

Parameters

messages
the list of messages to send
player
a player to use for PlaceholderAPI's placeholders
fun CommandSender.send(messages: List<String>, player: Player?)
Send a message to a list of command senders

Parameters

message
the message to send to all the players
player
a player to use for PlaceholderAPI's placeholders
fun <T : CommandSender> List<T>.send(message: String, player: Player?)
Send a list of messages to a list of players

Parameters

messages
the list of messages to send
player
a player to use for PlaceholderAPI's placeholders
fun <T : CommandSender> MutableList<T>.send(messages: List<String>, player: Player?)