Class CommandRegistry

java.lang.Object
me.tayebyassine.homestead.commands.CommandRegistry

public final class CommandRegistry extends Object
Central registry for all top-level Homestead commands.

Every command (and its aliases) is bound to the plugin's CommandExecutor and TabCompleter here.

  • Method Details

    • registerAll

      public static void registerAll()
      Registers every top-level command of the plugin.
    • register

      public static void register(CommandBuilder command)
      Binds a single command, together with all of its aliases, to the plugin.
      Parameters:
      command - the command to register