command

inline fun command(name: String, register: Boolean = true, builder: LiteralCommandBuilder<CommandSourceStack>.() -> Unit = {}): RegistrableCommand<CommandSourceStack>(source)

Creates a new command. Opens a LiteralCommandBuilder.

Parameters

name

the name of the root command

register

if true, the command will automatically be registered