ToolSet / com.zndevs.toolset.commands / ToolSetMainCommand
ToolSetMainCommand
class ToolSetMainCommand : ToolSetCommand
Constructors
| <init> | ToolSetMainCommand() |
Inherited Properties
| enabled | var enabled: Boolean |
Functions
| getCommandName | fun getCommandName(): StringGets the name of the command |
| getSubCommands | fun getSubCommands(): Array<SubCommand>IMPORTANT: Do not recreate subcommands when this is run! |
| setConfigurationDefaults | fun setConfigurationDefaults(defaults: ToolSetConfiguration): ToolSetConfigurationSets the default configuration values for this command |
| setPlugin | fun setPlugin(plugin: JavaPlugin): UnitSets 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): PermissionGets 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>): BooleanReturns a command’s subcommands. Note: run last in your command executor! |