ToolSet / com.zndevs.toolset.commands / ToolSetMainCommand

ToolSetMainCommand

class ToolSetMainCommand : ToolSetCommand

Constructors

<init> ToolSetMainCommand()

Inherited Properties

enabled var enabled: Boolean

Functions

getCommandName fun getCommandName(): String
Gets the name of the command
getSubCommands fun getSubCommands(): Array<SubCommand>
IMPORTANT: Do not recreate subcommands when this is run!
setConfigurationDefaults fun setConfigurationDefaults(defaults: ToolSetConfiguration): ToolSetConfiguration
Sets the default configuration values for this command
setPlugin fun setPlugin(plugin: JavaPlugin): Unit
Sets the plugin using this command.

Inherited Functions

execute fun execute(sender: CommandSender, command: Command, label: String, args: Array<String>): Boolean
getRequiredPermission open fun getRequiredPermission(subCommand: String): Permission
Gets the permission required to run the specified subcommand
onCommand open fun onCommand(sender: CommandSender, command: Command, label: String, args: Array<String>): Boolean
onTabComplete open fun onTabComplete(sender: CommandSender, command: Command, label: String, args: Array<String>): List<String>
run fun run(sender: CommandSender, command: Command, label: String, args: Array<String>): Boolean
Returns a command’s subcommands. Note: run last in your command executor!