Package me.hsgamer.bettergui.manager
Class MenuCommandManager
- java.lang.Object
-
- me.hsgamer.bettergui.manager.MenuCommandManager
-
- All Implemented Interfaces:
Loadable
,PostEnable
public class MenuCommandManager extends Object implements Loadable, PostEnable
-
-
Constructor Summary
Constructors Constructor Description MenuCommandManager(BetterGUI plugin)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clearMenuCommand()
Clear all menu commandsvoid
disable()
Map<String,org.bukkit.command.Command>
getRegisteredMenuCommand()
Get registered menu commandsvoid
postEnable()
void
registerMenuCommand(String command, Menu menu)
Register the command that opens the menuvoid
registerMenuCommand(org.bukkit.command.Command command)
Register the command that opens the menu
-
-
-
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 commandmenu
- 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
-
postEnable
public void postEnable()
- Specified by:
postEnable
in interfacePostEnable
-
-