permissionAnd
fun permissionAnd(permission: String, predicate: (CommandSourceStack) -> Boolean): CommandCreator<T>
Sets a permission requirement combined with an additional condition for this command.
The command or subcommand will only be available and executable if the sender has the specified permission and the provided predicate returns true.
Return
this CommandCreator instance for chaining
Parameters
permission
the permission string required to execute this command
predicate
a function that takes a CommandSourceStack and returns a Boolean