public boolean dispatchCommand(CommandSender sender, String commandLine) { if (commandMap.dispatch(sender, commandLine)) { return true; } sender.sendMessage("Unknown command. Type \"help\" for help."); return false; }
public AddonCommand getAddonCommand(String name) { Command command = commandMap.getCommand(name); if (command instanceof AddonCommand) { return (AddonCommand) command; } else { return null; } }