Command
Representation of a command
Parameters
name
The name of the command
on Execute
The function to execute when the command is executed.
Constructors
Functions
Link copied to clipboard
Makes this command to be executable only through console
Link copied to clipboard
Makes this command to be executable only by players
Link copied to clipboard
fun subCommand(signature: String, tabCompletions: (CommandSender) -> Map<String, Collection<String>> = { emptyMap() }, executor: (CommandExecutor) -> Unit): Command
Content copied to clipboard
Registers an argument to this command
Link copied to clipboard
Sets the command permission to the given permission
Link copied to clipboard
fun withTabCompleter(tabCompleter: (CommandSender, Array<String>) -> Collection<String>): Command
Content copied to clipboard
Replaces the default tab completer for this command