Class CommandManager<P extends CodexPlugin<P>>

java.lang.Object
studio.magemonkey.codex.commands.CommandManager<P>
All Implemented Interfaces:
studio.magemonkey.codex.manager.api.Loadable

public class CommandManager<P extends CodexPlugin<P>> extends Object implements studio.magemonkey.codex.manager.api.Loadable
  • Constructor Details

    • CommandManager

      public CommandManager(@NotNull P plugin)
  • Method Details

    • setup

      public void setup()
      Specified by:
      setup in interface studio.magemonkey.codex.manager.api.Loadable
    • shutdown

      public void shutdown()
      Specified by:
      shutdown in interface studio.magemonkey.codex.manager.api.Loadable
    • getCommands

      @NotNull public Set<IGeneralCommand<P>> getCommands()
    • getMainCommand

      @NotNull public MainCommand<P> getMainCommand()
    • registerCommand

      public void registerCommand(@NotNull IGeneralCommand<P> cmd)
    • unregisterCommand

      public void unregisterCommand(@NotNull IGeneralCommand<P> cmd)