send

fun send()

Sends the message to the console.


fun send(vararg audience: Audience)

Sends the message to multiple players.

Parameters

audience

Vararg of Audience to send the message to.


fun send(audience: Iterable<Audience>)

Sends the message to a collection of players.

Parameters

audience

Iterable of Audience to send the message to.


fun send(center: Player, radius: Double)

Sends the message to players near a given player within a certain radius.

Parameters

center

The central player used for distance calculation.

radius

The maximum distance to receive the message.


fun send(audience: Audience, placeholders: Map<String, String>)

Sends the message to a specific audience with placeholders replaced.

Parameters

audience

The target audience (can be a player, console, commandsender, entity, server, world, team)

placeholders

A map of placeholders to replace in the message.


fun send(center: Player, radius: Double, placeholders: Map<String, String>)

Sends the message to players near a given player within a certain radius, with placeholders replaced.

Parameters

center

The central player used for distance calculation.

radius

The maximum distance to receive the message.

placeholders

A map of placeholders to replace in the message.