Class CommandManager

java.lang.Object
org.geysermc.geyser.command.CommandManager
Direct Known Subclasses:
GeyserBungeeCommandManager, GeyserCommandManager, GeyserSpigotCommandManager, GeyserSpongeCommandManager, GeyserVelocityCommandManager

public abstract class CommandManager extends Object
  • Constructor Details

    • CommandManager

      public CommandManager(GeyserImpl geyser)
  • Method Details

    • registerCommand

      public void registerCommand(GeyserCommand command)
    • runCommand

      public void runCommand(CommandSender sender, String command)
    • getCommandNames

      public List<String> getCommandNames()
      Returns:
      a list of all subcommands under /geyser.
    • getDescription

      public abstract String getDescription(String command)
      Returns the description of the given command
      Parameters:
      command - Command to get the description for
      Returns:
      Command description
    • getCommands

      public Map<String,​GeyserCommand> getCommands()