broadcast

fun broadcast()

Sends the message to all online players.


fun broadcast(center: Location, radius: Double)

Sends the message to all players near a given location within a radius.

Parameters

center

The central location.

radius

The maximum distance to receive the message.


fun broadcast(placeholders: Map<String, String>)

Sends the message to all online players with placeholders replaced.

Parameters

placeholders

A map of placeholders to replace in the message.


fun broadcast(center: Location, radius: Double, placeholders: Map<String, String>)

Sends the message to all online players if the given condition is true, with placeholders replaced.

Parameters

condition

Boolean condition to check.

placeholders

A map of placeholders to replace in the message.