Colosseum Base Command
open class ColosseumBaseCommand(plugin: ColosseumPlugin, name: String, subCommands: List<ColosseumCommand>) : ColosseumNestedCommand
Base command class for Colosseum commands. This class serves as the root command that can contain multiple sub-commands.
Parameters
plugin
The Colosseum plugin instance.
name
The name of the base command.
sub Commands
A list of sub-commands under this base command.
Properties
Functions
Link copied to clipboard
fun commandDescriptor(init: ColosseumCommand.CommandData.Builder.() -> Unit): ColosseumCommand.CommandData
Constructs the command descriptor for the nested command using the class's name. This includes setting up the arguments to handle sub-commands and any additional arguments.
Link copied to clipboard
Executes the command.
Link copied to clipboard
Executes the command for a command block sender.
Link copied to clipboard
Executes the command for a console sender.
Link copied to clipboard
Executes the command for a player sender.
Link copied to clipboard
Generates the command format string for display.
Link copied to clipboard