Class CommandManager

java.lang.Object
com.github.pinont.singularitylib.api.manager.CommandManager

public class CommandManager extends Object
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 Details

    • CommandManager

      public CommandManager()
      Default constructor for CommandManager.
  • Method Details

    • register

      public void register(org.bukkit.plugin.Plugin plugin, List<SimpleCommand> simpleCommands)
      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 for
      simpleCommands - the list of SimpleCommand instances to register