require

fun require(message: String, check: (CommandSender) -> Boolean): Command

Adds a new requirement to the command

Parameters

message

The message to send to the command sender if the requirement is not met

check

The function to check if the requirement is met