public class CommandManager extends Object implements org.bukkit.event.Listener
| Constructor and Description |
|---|
CommandManager(org.bukkit.plugin.java.JavaPlugin plugin) |
| 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 |
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 ParameterHandler getParameterHandler()
public CompletionHandler getCompletionHandler()
public MessageHandler getMessageHandler()
public void register(CommandBase command)
command - The command class to register.public void onPluginDisable(org.bukkit.event.server.PluginDisableEvent event)
event - PluginDisableEvent.Copyright © 2019. All rights reserved.