public class CommandManager
extends java.lang.Object
implements org.bukkit.command.CommandExecutor
Constructor and Description |
---|
CommandManager(org.bukkit.plugin.Plugin plugin) |
Modifier and Type | Method and Description |
---|---|
void |
addCompletionsForCommand(java.lang.String command,
java.lang.String... completions) |
void |
createCommandMap(org.bukkit.plugin.Plugin plugin) |
ColorScheme |
getDefaultScheme() |
boolean |
onCommand(org.bukkit.command.CommandSender sender,
org.bukkit.command.Command cmd,
java.lang.String label,
java.lang.String[] args) |
void |
registerCommand(Command command,
java.lang.String label,
java.lang.reflect.Method method,
java.lang.Object clazz) |
void |
registerCommand(org.bukkit.plugin.Plugin plugin,
Command command,
java.lang.String label,
java.lang.reflect.Method method,
java.lang.Object clazz)
Deprecated.
|
void |
registerCommands(java.lang.Object clazz) |
void |
registerCommands(org.bukkit.plugin.Plugin plugin,
java.lang.Object clazz)
Deprecated.
|
void |
runHelpMessage(CommandAdapter command,
org.bukkit.command.CommandSender sender,
ColorScheme scheme) |
void |
unregisterBukkitCommand(org.bukkit.command.Command cmd) |
void |
unregisterCommand(java.lang.String name) |
void |
unregisterCommands() |
void |
unregisterCommands(org.bukkit.plugin.Plugin plugin)
Deprecated.
|
public void createCommandMap(org.bukkit.plugin.Plugin plugin)
@Deprecated public void registerCommands(org.bukkit.plugin.Plugin plugin, java.lang.Object clazz)
public void registerCommands(java.lang.Object clazz)
@Deprecated public void unregisterCommands(org.bukkit.plugin.Plugin plugin)
public void unregisterCommands()
public void unregisterCommand(java.lang.String name)
public void unregisterBukkitCommand(org.bukkit.command.Command cmd)
public boolean onCommand(org.bukkit.command.CommandSender sender, org.bukkit.command.Command cmd, java.lang.String label, java.lang.String[] args)
onCommand
in interface org.bukkit.command.CommandExecutor
public ColorScheme getDefaultScheme()
public void runHelpMessage(CommandAdapter command, org.bukkit.command.CommandSender sender, ColorScheme scheme)
public void registerCommand(Command command, java.lang.String label, java.lang.reflect.Method method, java.lang.Object clazz)
@Deprecated public void registerCommand(org.bukkit.plugin.Plugin plugin, Command command, java.lang.String label, java.lang.reflect.Method method, java.lang.Object clazz)
public void addCompletionsForCommand(java.lang.String command, java.lang.String... completions)