sendIf

fun sendIf(condition: Boolean, audience: Audience)

Sends the message to the player only if the given condition is true.

Parameters

condition

Boolean condition to check.

audience

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