oneOfPlayers

fun oneOfPlayers(vararg names: String): EventScope<T>

Adds a condition that checks if the event was triggered by any of the specified player names.

Return

The updated EventScope instance.

Parameters

names

The player names to check.


fun oneOfPlayers(vararg players: Player): EventScope<T>

Adds a condition that checks if the event was triggered by any of the specified players.

Return

The updated EventScope instance.

Parameters

players

The players to check.