player

fun player(name: String): EventScope<T>

Adds a condition that checks if the event was triggered by a player with the specified name.

Return

The updated EventScope instance.

Parameters

name

The player's name.


fun player(player: Player): EventScope<T>

Adds a condition that checks if the event was triggered by a specific player.

Return

The updated EventScope instance.

Parameters

player

The player to check.