broadcastFormattedMessage

open fun broadcastFormattedMessage(message: String, predicate: Predicate<P> = Predicate { true })

Broadcasts a formatted message to all players satisfying the given predicate.

Parameters

message

The formatted message to be broadcasted.

predicate

A filter function that checks whether a player should receive the message. Defaults to a predicate that always returns true for all players.