public boolean run(String[] args) { if (sender != null) { if (sender instanceof Player) Message.debug("Command issued by player: " + sender.getName()); else if (sender instanceof ConsoleCommandSender) Message.debug("Command issued by CONSOLE"); else Message.debug("Command issued by GHOSTS and WIZARDS"); } if (!allowConsole && !(sender instanceof Player)) { Message.send("This command can only be run by a living player"); return false; } if (permission != null && (sender instanceof Player) && !sender.hasPermission(permission)) { Message.send("You do not have the permission to use this command"); return false; } return clazz.run(args); }
public void getHelpLine() { clazz.getHelpLine(); }
public void getHelp() { clazz.getHelp(); }