Class BaseCommandHandler

java.lang.Object
me.github.simonplays15.betterbansystem.core.command.BaseCommandHandler

public class BaseCommandHandler extends Object
The BaseCommandHandler class is responsible for handling commands in a command-based system. It contains a collection of registered commands and provides methods to register and retrieve them.
  • Constructor Details

    • BaseCommandHandler

      public BaseCommandHandler()
      The BaseCommandHandler class represents a command handler for managing and executing commands.
  • Method Details

    • getCommands

      public Map<String,BaseCommand> getCommands()
      Retrieves the commands registered in the BaseCommandHandler.
      Returns:
      A map containing the registered commands, where the key is the command name and the value is the corresponding BaseCommand object.