subCommand

fun subCommand(signature: String, tabCompletions: (CommandSender) -> Map<String, Collection<String>> = { emptyMap() }, executor: (CommandExecutor) -> Unit): Command

Registers an argument to this command

Return

this command

Parameters

signature

The name and signature of the command

executor

The function to execute when the argument is executed