requireOpAnd

fun requireOpAnd(predicate: (CommandSourceStack) -> Boolean): CommandCreator<T>

Sets a requirement that the command sender must be an operator and satisfy an additional condition.

The command or subcommand will only be available and executable if the sender has operator status and the provided predicate returns true.

Return

this CommandCreator instance for chaining

Parameters

predicate

a function that takes a CommandSourceStack and returns a Boolean