filter

fun filter(predicate: (Player) -> Boolean): MessageBuilder

Adds a filter to only apply the message to players who meet the condition specified in the predicate.

Return

The MessageBuilder instance for method chaining.

Parameters

predicate

The condition that the player must meet for the message to be sent.