public final class CommandManager extends Object implements org.bukkit.event.Listener
| Constructor and Description |
|---|
CommandManager(org.bukkit.plugin.Plugin plugin)
Main constructor for the manager
|
CommandManager(org.bukkit.plugin.Plugin plugin,
boolean hideTab)
Constructor for the manager
|
| Modifier and Type | Method and Description |
|---|---|
CompletionHandler |
getCompletionHandler()
Gets the completion handler class, which handles all the command completions in the plugin.
|
MessageHandler |
getMessageHandler()
Gets the message handler, which handles all the messages autogenerated by the framework.
|
ParameterHandler |
getParameterHandler()
Gets the parameter types class to register new ones and to check too.
|
void |
hideTabComplete(boolean hideTab)
Sets whether you want to hide or not commands from tab completion if players don't have permission to use them.
|
void |
onPluginDisable(org.bukkit.event.server.PluginDisableEvent event)
Unregisters all the commands on the disable of the plugin.
|
void |
register(CommandBase command)
Registers a command.
|
public CommandManager(org.bukkit.plugin.Plugin plugin)
plugin - The plugin's main classpublic CommandManager(org.bukkit.plugin.Plugin plugin,
boolean hideTab)
plugin - The plugin's main classhideTab - If should or not hide tabpublic ParameterHandler getParameterHandler()
public CompletionHandler getCompletionHandler()
public MessageHandler getMessageHandler()
public void register(CommandBase command)
command - The command class to register.public void hideTabComplete(boolean hideTab)
hideTab - Hide or Not.public void onPluginDisable(org.bukkit.event.server.PluginDisableEvent event)
event - PluginDisableEvent.Copyright © 2020. All rights reserved.