register
Registers a brigadier command.
Parameters
The instance of the command to register.
Throws
If attempting to register commands after commands have already been registered.
If a command with the same name or alias already exists.
Registers a brigadier command with a custom namespace.
Parameters
The namespace prefix for this command.
The instance of the command to register.
Throws
If attempting to register commands after commands have already been registered.
If a command with the same name or alias already exists.
Registers a command with its name and optional aliases.
Parameters
The primary name of the command.
The instance of the command to register.
Optional alias names for the command.
Throws
If attempting to register commands after commands have already been registered.
If a command with the same name or alias already exists.
Registers a command with a custom namespace, name, and optional aliases.
The namespace overrides commandNamespace for this command, making it accessible as /namespace:command on Spigot/Paper.
Parameters
The namespace prefix for this command.
The primary name of the command.
The instance of the command to register.
Optional alias names for the command.
Throws
If attempting to register commands after commands have already been registered.
If a command with the same name or alias already exists.