Package org.galliumpowered.command
Class CommandManager
java.lang.Object
org.galliumpowered.command.CommandManager
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCommand names and their metadata Should not be modified under normal conditions!Subcommands and their parents Should not be modified under normal conditions!voidregisterCommand(Object command, PluginMetadata meta) Register a command on the servervoidregisterCommand(Object command, PluginContainer plugin) Register a command on the servervoidUnregister all commands from a pluginvoidunregisterCommand(String alias) Unregister a command from the server
-
Constructor Details
-
CommandManager
public CommandManager()
-
-
Method Details
-
registerCommand
Register a command on the server- Parameters:
command- A class instance containing aCommandannotation.plugin- APluginContainerinstance
-
registerCommand
Register a command on the server- Parameters:
command- A class instance containing aCommandannotation.meta- APluginMetadatainstance
-
unregisterCommand
Unregister a command from the server- Parameters:
alias- The alias of the command
-
unregisterAllPluginCommands
Unregister all commands from a plugin- Parameters:
meta- The plugin's metadata
-
getCommands
Command names and their metadata Should not be modified under normal conditions!- Returns:
- Command names and their metadata
-
getSubcommands
Subcommands and their parents Should not be modified under normal conditions!- Returns:
- Subcommands and their parents
-