ToolSet / com.zndevs.toolset.commands / ToolSetUpdateCommand / getSubCommands

getSubCommands

fun getSubCommands(): Array<SubCommand>

Overrides ToolSetCommand.getSubCommands

IMPORTANT: Do not recreate subcommands when this is run!

It gets run multiple times. Instead store either an array of SubCommands and directly return it, or store each SubCommand separately and return them in an array (first option is recommended).

Return a list of subcommands that can be accessed with /<command> <subcommand>. Will also be added to the help list.

Return Subcommands in an array