Ejemplo n.º 1
0
 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);
 }
Ejemplo n.º 2
0
 public void getHelpLine() {
   clazz.getHelpLine();
 }
Ejemplo n.º 3
0
 public void getHelp() {
   clazz.getHelp();
 }