Class CommandManager
java.lang.Object
com.github.pinont.singularitylib.api.manager.CommandManager
Manages the registration of commands for the plugin.
This class handles the registration of SimpleCommand instances and their aliases
during the plugin's lifecycle events.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidregister(org.bukkit.plugin.Plugin plugin, List<SimpleCommand> simpleCommands) Registers a list of SimpleCommand instances with the plugin.
-
Constructor Details
-
CommandManager
public CommandManager()Default constructor for CommandManager.
-
-
Method Details
-
register
Registers a list of SimpleCommand instances with the plugin. This method registers commands and their aliases during the COMMANDS lifecycle event. It tracks registration success and failure counts and provides console feedback.- Parameters:
plugin- the plugin instance to register commands forsimpleCommands- the list of SimpleCommand instances to register
-