invoke

infix inline operator fun String.invoke(creator: CommandCreator<LiteralArgumentBuilder<CommandSourceStack>>.() -> Unit): String

DSL operator to add a literal subcommand to the command.

Example:

"subcommand" {
executes { ... }
}

Parameters

creator

the configuration block for the subcommand identified by the literal string