requirePermission

fun Player.requirePermission(block: PermissionCollector.() -> Unit)

Requires the player to have at least one of the specified permissions.

Return

Throws RequirePermissionException if the player lacks all specified permissions.

Parameters

block

A lambda with receiver to collect permissions.

Throws

RequirePermissionException

if the player lacks all specified permissions.