command

inline fun Plugin.command(name: String = this.name.lowercase(), block: CommandCreator<LiteralArgumentBuilder<CommandSourceStack>>.() -> Unit)

Creates and registers a new command for the Plugin.

This is the entry point for the command DSL.

Parameters

name

the name of the command to create

block

the DSL configuration block for the command