Class MenuCommandManager

    • Constructor Detail

      • MenuCommandManager

        public MenuCommandManager​(BetterGUI plugin)
    • Method Detail

      • registerMenuCommand

        public void registerMenuCommand​(String command,
                                        Menu menu)
        Register the command that opens the menu
        Parameters:
        command - the name of the command
        menu - the menu
      • registerMenuCommand

        public void registerMenuCommand​(org.bukkit.command.Command command)
        Register the command that opens the menu
        Parameters:
        command - the menu command
      • clearMenuCommand

        public void clearMenuCommand()
        Clear all menu commands
      • getRegisteredMenuCommand

        public Map<String,​org.bukkit.command.Command> getRegisteredMenuCommand()
        Get registered menu commands
        Returns:
        the commands
      • disable

        public void disable()
        Specified by:
        disable in interface Loadable