Program: 153679
Project: 153679
Buggy source:
@Override public void onPlayerCommand(PlayerChatEvent event){
  String[] split=event.getMessage().split("String_Node_Str");
  Player player=event.getPlayer();
  if (j2.hasFlag(player,Flag.JAILED)) {
    if (split[0].equalsIgnoreCase("String_Node_Str")) {
      j2.users.getUser(player).dropFlag(Flag.JAILED);
    }
    event.setCancelled(true);
    return;
  }
  if (split[0].equalsIgnoreCase("String_Node_Str")) {
    for (    String line : j2.rules) {
      player.sendMessage(line);
    }
    event.setCancelled(true);
    return;
  }
  if (split[0].equalsIgnoreCase("String_Node_Str")) {
    for (    String line : j2.blacklist) {
      player.sendMessage(line);
    }
    event.setCancelled(true);
    return;
  }
  if (split[0].equalsIgnoreCase("String_Node_Str")) {
    for (    String line : j2.intro) {
      player.sendMessage(line);
    }
    event.setCancelled(true);
    return;
  }
  if (split[0].equalsIgnoreCase("String_Node_Str") && j2.hasFlag(player,Flag.TRUSTED)) {
    String playerName=player.getName().toLowerCase();
    if (j2.tpProtect.getBoolean(playerName,false)) {
      j2.tpProtect.setBoolean(playerName,false);
      player.sendMessage(ChatColor.RED + "String_Node_Str");
    }
 else {
      j2.tpProtect.setBoolean(playerName,true);
      player.sendMessage(ChatColor.RED + "String_Node_Str");
    }
    event.setCancelled(true);
    return;
  }
  if (split[0].equalsIgnoreCase("String_Node_Str") && (j2.hasFlag(player,Flag.FUN))) {
    List<Player> inquest=j2.getServer().matchPlayer(split[1]);
    if (inquest.size() == 1) {
      Player inquestion=inquest.get(0);
      if (!j2.hasFlag(player,Flag.ADMIN) && inquestion != null && (j2.hasFlag(inquestion,Flag.TRUSTED)) && j2.tpProtect.getBoolean(inquestion.getName().toLowerCase(),false)) {
        player.sendMessage(ChatColor.RED + "String_Node_Str");
      }
 else       if (inquestion.getName().equalsIgnoreCase(player.getName())) {
        player.sendMessage(ChatColor.RED + "String_Node_Str");
      }
 else {
        player.teleportTo(inquestion.getLocation());
        j2.log.info("String_Node_Str" + player.getName() + "String_Node_Str"+ inquestion.getName());
      }
    }
 else {
      player.sendMessage(ChatColor.RED + "String_Node_Str");
    }
    event.setCancelled(true);
    return;
  }
  if (split[0].equalsIgnoreCase("String_Node_Str") && j2.hasFlag(player,Flag.ADMIN)) {
    List<Player> inquest=j2.getServer().matchPlayer(split[1]);
    if (inquest.size() == 1) {
      Player inquestion=inquest.get(0);
      if (inquestion.getName().equalsIgnoreCase(player.getName())) {
        player.sendMessage(ChatColor.RED + "String_Node_Str");
      }
 else {
        player.teleportTo(inquestion.getLocation());
        inquestion.sendMessage("String_Node_Str");
        player.sendMessage("String_Node_Str" + inquestion.getName());
        j2.log.info("String_Node_Str" + player.getName() + "String_Node_Str"+ inquestion.getName()+ "String_Node_Str");
      }
    }
 else {
      player.sendMessage(ChatColor.RED + "String_Node_Str");
    }
    event.setCancelled(true);
    return;
  }
  if (split[0].equalsIgnoreCase("String_Node_Str")) {
    if (split.length < 3) {
      player.sendMessage(ChatColor.RED + "String_Node_Str");
      event.setCancelled(true);
      return;
    }
    List<Player> inquest=j2.getServer().matchPlayer(split[1]);
    if (inquest.size() == 1) {
      Player inquestion=inquest.get(0);
      player.sendMessage("String_Node_Str" + player.getName() + "String_Node_Str"+ j2.combineSplit(2,split,"String_Node_Str"));
      inquestion.sendMessage("String_Node_Str" + player.getName() + "String_Node_Str"+ j2.combineSplit(2,split,"String_Node_Str"));
      j2.log.info("String_Node_Str" + inquestion.getName() + "String_Node_Str"+ player.getName()+ "String_Node_Str"+ j2.combineSplit(2,split,"String_Node_Str"));
    }
 else {
      player.sendMessage(ChatColor.RED + "String_Node_Str");
    }
    event.setCancelled(true);
    return;
  }
  if ((split[0].equalsIgnoreCase("String_Node_Str") || split[0].equalsIgnoreCase("String_Node_Str")) && j2.hasFlag(player,Flag.FUN)) {
    if (split.length < 2) {
      player.sendMessage(ChatColor.RED + "String_Node_Str");
      event.setCancelled(true);
      return;
    }
    int item=0;
    int amount=1;
    int dataType=-1;
    try {
      if (split[1].contains("String_Node_Str")) {
        String[] data=split[1].split("String_Node_Str");
        try {
          dataType=Integer.valueOf(data[1]);
        }
 catch (        NumberFormatException e) {
          dataType=-1;
        }
        item=Integer.valueOf(data[0]);
      }
 else {
        item=Integer.valueOf(split[1]);
      }
      if (split.length > 2) {
        amount=Integer.valueOf(split[2]);
      }
 else {
        amount=1;
      }
    }
 catch (    NumberFormatException e) {
      player.sendMessage(ChatColor.RED + "String_Node_Str");
      return;
    }
    if ((new ItemStack(item)).getType() == null || item == 0) {
      player.sendMessage(ChatColor.RED + "String_Node_Str");
      event.setCancelled(true);
      return;
    }
    if (dataType != -1) {
      player.getWorld().dropItem(player.getLocation(),new ItemStack(item,amount,((byte)dataType)));
    }
 else {
      player.getWorld().dropItem(player.getLocation(),new ItemStack(item,amount));
    }
    player.sendMessage(ChatColor.RED + "String_Node_Str");
    event.setCancelled(true);
    return;
  }
  if (split[0].equalsIgnoreCase("String_Node_Str") && j2.hasFlag(player,Flag.ADMIN)) {
    if (split.length != 2) {
      player.sendMessage(ChatColor.RED + "String_Node_Str");
      event.setCancelled(true);
      return;
    }
    long desired;
    if (split[1].equalsIgnoreCase("String_Node_Str")) {
      desired=0;
    }
 else     if (split[1].equalsIgnoreCase("String_Node_Str")) {
      desired=13000;
    }
 else {
      player.sendMessage(ChatColor.RED + "String_Node_Str");
      event.setCancelled(true);
      return;
    }
    long curTime=j2.getServer().getWorlds().get(0).getTime();
    long margin=(desired - curTime) % 24000;
    if (margin < 0) {
      margin+=24000;
    }
    j2.getServer().getWorlds().get(0).setTime(curTime + margin);
    player.sendMessage(ChatColor.RED + "String_Node_Str");
    event.setCancelled(true);
    return;
  }
  if (split[0].equalsIgnoreCase("String_Node_Str") || split[0].equalsIgnoreCase("String_Node_Str")) {
    Player[] players=j2.getServer().getOnlinePlayers();
    String msg="String_Node_Str" + players.length + "String_Node_Str";
    for (    Player p : players) {
      msg+="String_Node_Str" + p.getName();
    }
    player.sendMessage(msg);
    event.setCancelled(true);
    return;
  }
  if (split[0].equalsIgnoreCase("String_Node_Str") && j2.hasFlag(player,Flag.ADMIN)) {
    if (split.length < 2) {
      event.getPlayer().sendMessage(ChatColor.RED + "String_Node_Str");
      event.setCancelled(true);
      return;
    }
    String playerName=player.getName();
    String message=j2.combineSplit(1,split,"String_Node_Str");
    j2.chat.aMsg(playerName,message);
    event.setCancelled(true);
    return;
  }
  if (split[0].equalsIgnoreCase("String_Node_Str")) {
    if (split.length > 1) {
      String playerName=player.getName();
      String theReport=j2.combineSplit(1,split,"String_Node_Str");
      String message="String_Node_Str" + playerName + "String_Node_Str"+ theReport;
      String ircmessage="String_Node_Str" + playerName + "String_Node_Str"+ theReport;
      j2.chat.msgByFlag(Flag.ADMIN,message);
      j2.irc.ircAdminMsg(ircmessage);
      j2.log.info(ircmessage);
      Report report=new Report(0,player.getLocation(),player.getName(),theReport,(new Date().getTime()) / 1000);
      j2.mysql.addReport(report);
      player.sendMessage(ChatColor.RED + "String_Node_Str");
    }
 else {
      player.sendMessage(ChatColor.RED + "String_Node_Str");
      player.sendMessage(ChatColor.RED + "String_Node_Str");
    }
    event.setCancelled(true);
    return;
  }
  if (split[0].equalsIgnoreCase("String_Node_Str") && j2.hasFlag(player,Flag.ADMIN)) {
    ArrayList<Report> reps=j2.reports.getReports();
    int size=reps.size();
    if (size == 0) {
      player.sendMessage(ChatColor.RED + "String_Node_Str");
      event.setCancelled(true);
      return;
    }
    player.sendMessage(ChatColor.DARK_PURPLE + "String_Node_Str" + size+ "String_Node_Str");
    for (    Report r : reps) {
      player.sendMessage(ChatColor.DARK_PURPLE + "String_Node_Str" + r.getID()+ "String_Node_Str"+ ChatColor.WHITE+ r.getUser()+ ChatColor.DARK_PURPLE+ "String_Node_Str"+ ChatColor.WHITE+ r.getMessage());
    }
    event.setCancelled(true);
    return;
  }
  if (split[0].equalsIgnoreCase("String_Node_Str") && j2.hasFlag(player,Flag.ADMIN)) {
    if (split.length < 2) {
      event.getPlayer().sendMessage(ChatColor.RED + "String_Node_Str");
      event.setCancelled(true);
      return;
    }
    String playerName=player.getName();
    String text="String_Node_Str";
    text+=j2.combineSplit(1,split,"String_Node_Str");
    j2.chat.gMsg(playerName,text);
    event.setCancelled(true);
    return;
  }
  if (split[0].equalsIgnoreCase("String_Node_Str") && j2.hasFlag(player,Flag.ADMIN)) {
    if (split.length < 3) {
      player.sendMessage(ChatColor.RED + "String_Node_Str");
      player.sendMessage(ChatColor.RED + "String_Node_Str");
      event.setCancelled(true);
      return;
    }
    String adminName=player.getName();
    j2.kickbans.callBan(adminName,split,player.getLocation());
    event.setCancelled(true);
    return;
  }
  if (split[0].equalsIgnoreCase("String_Node_Str") && j2.hasFlag(player,Flag.ADMIN)) {
    if (split.length < 3) {
      player.sendMessage(ChatColor.RED + "String_Node_Str");
      event.setCancelled(true);
      return;
    }
    String adminName=player.getName();
    j2.kickbans.callKick(split[1],adminName,j2.combineSplit(2,split,"String_Node_Str"));
    event.setCancelled(true);
    return;
  }
  if (split[0].equalsIgnoreCase("String_Node_Str") && j2.hasFlag(player,Flag.ADMIN)) {
    if (split.length < 3) {
      player.sendMessage(ChatColor.RED + "String_Node_Str");
      player.sendMessage(ChatColor.RED + "String_Node_Str");
      event.setCancelled(true);
      return;
    }
    String adminName=player.getName();
    j2.kickbans.callAddBan(adminName,split,player.getLocation());
    event.setCancelled(true);
    return;
  }
  if ((split[0].equalsIgnoreCase("String_Node_Str") || split[0].equalsIgnoreCase("String_Node_Str")) && j2.hasFlag(player,Flag.ADMIN)) {
    if (split.length < 2) {
      player.sendMessage(ChatColor.RED + "String_Node_Str");
      event.setCancelled(true);
      return;
    }
    String name=split[1];
    String adminName=player.getName();
    j2.mysql.unban(name);
    j2.log.log(Level.INFO,"String_Node_Str" + name + "String_Node_Str"+ adminName);
    j2.chat.msgByFlag(Flag.ADMIN,ChatColor.RED + "String_Node_Str" + name+ "String_Node_Str"+ adminName);
    event.setCancelled(true);
    return;
  }
  if (split[0].equalsIgnoreCase("String_Node_Str") && j2.hasFlag(player,Flag.ADMIN)) {
    if (split.length == 1) {
      player.sendMessage("String_Node_Str");
      event.setCancelled(true);
      return;
    }
    List<Player> match=j2.getServer().matchPlayer(split[1]);
    if (match.size() != 1 || match.get(0) == null) {
      player.sendMessage("String_Node_Str");
      event.setCancelled(true);
      return;
    }
    Player who=match.get(0);
    String message="String_Node_Str" + match.get(0).getName() + "String_Node_Str";
    for (    Flag f : j2.users.getAllFlags(who)) {
      message+=f.getDescription() + "String_Node_Str";
    }
    player.sendMessage(message);
    j2.log.info(player.getName() + "String_Node_Str" + who.getName());
    event.setCancelled(true);
    return;
  }
  if (split[0].equalsIgnoreCase("String_Node_Str") && split.length > 1) {
    String message="String_Node_Str";
    message+=j2.combineSplit(1,split,"String_Node_Str");
    j2.chat.addChat(player.getName(),message);
    j2.irc.ircMsg("String_Node_Str" + player.getName() + "String_Node_Str"+ message);
  }
  if (split[0].equalsIgnoreCase("String_Node_Str") && j2.hasFlag(player,Flag.ADMIN)) {
    if (split.length == 1) {
      player.sendMessage(ChatColor.RED + "String_Node_Str");
      player.sendMessage(ChatColor.RED + "String_Node_Str");
      event.setCancelled(true);
      return;
    }
    String name=split[1];
    String reason="String_Node_Str";
    String admin=player.getName();
    if (split.length > 2)     reason=j2.combineSplit(2,split,"String_Node_Str");
    j2.kickbans.forceKick(name,reason);
    j2.log.log(Level.INFO,"String_Node_Str" + name + "String_Node_Str"+ admin+ "String_Node_Str"+ reason);
    j2.chat.msgByFlag(Flag.ADMIN,ChatColor.RED + "String_Node_Str" + name+ "String_Node_Str"+ admin+ "String_Node_Str"+ reason);
    j2.chat.msgByFlagless(Flag.ADMIN,ChatColor.RED + name + "String_Node_Str"+ reason+ "String_Node_Str");
    event.setCancelled(true);
    return;
  }
  if (split[0].equalsIgnoreCase("String_Node_Str") && j2.hasFlag(player,Flag.SRSTAFF)) {
    j2.irc.loadIRCAdmins();
    j2.chat.msgByFlag(Flag.SRSTAFF,ChatColor.RED + "String_Node_Str" + player.getName());
    j2.log.info(player.getName() + "String_Node_Str");
    event.setCancelled(true);
    return;
  }
  if (split[0].equalsIgnoreCase("String_Node_Str") && j2.hasFlag(player,Flag.SRSTAFF)) {
    j2.loadData();
    j2.chat.msgByFlag(Flag.SRSTAFF,"String_Node_Str" + player.getName());
    j2.log.info("String_Node_Str" + player.getName());
    event.setCancelled(true);
    return;
  }
  if (split[0].equalsIgnoreCase("String_Node_Str") && j2.hasFlag(player,Flag.SRSTAFF)) {
    if (!j2.maintenance) {
      j2.log.info(player.getName() + "String_Node_Str");
      j2.maintenance=true;
      for (      Player p : j2.getServer().getOnlinePlayers()) {
        if (p != null && !j2.hasFlag(player,Flag.ADMIN)) {
          p.sendMessage("String_Node_Str");
          p.kickPlayer("String_Node_Str");
        }
      }
      j2.chat.msgByFlag(Flag.ADMIN,"String_Node_Str" + player.getName());
    }
 else {
      j2.log.info(player.getName() + "String_Node_Str");
      j2.chat.msgByFlag(Flag.ADMIN,"String_Node_Str" + player.getName());
      j2.maintenance=false;
    }
    event.setCancelled(true);
    return;
  }
  if (split[0].equalsIgnoreCase("String_Node_Str") && j2.hasFlag(player,Flag.ADMIN)) {
    player.sendMessage("String_Node_Str");
    j2.log.info(player.getName() + "String_Node_Str");
    j2.OneByOne=player;
    event.setCancelled(true);
    return;
  }
  if (split[0].equalsIgnoreCase("String_Node_Str") && j2.hasFlag(player,Flag.SRSTAFF)) {
    String action=split[2];
    if (split.length < 4 || !(action.equalsIgnoreCase("String_Node_Str") || action.equalsIgnoreCase("String_Node_Str"))) {
      player.sendMessage(ChatColor.RED + "String_Node_Str");
      event.setCancelled(true);
      return;
    }
    String name=split[1];
    char flag=split[3].charAt(0);
    User user=j2.users.getUser(name);
    if (user == null) {
      user=j2.mysql.getUser(name);
    }
    if (action.equalsIgnoreCase("String_Node_Str")) {
      user.addFlag(Flag.byChar(flag));
    }
 else {
      user.dropFlag(Flag.byChar(flag));
    }
    String log=ChatColor.RED + player.getName() + "String_Node_Str"+ name+ "String_Node_Str"+ action+ "String_Node_Str"+ Flag.byChar(flag).getDescription();
    j2.chat.msgByFlag(Flag.ADMIN,log);
    j2.log.info(log);
    event.setCancelled(true);
    return;
  }
  if (split[0].equalsIgnoreCase("String_Node_Str")) {
    Location p_loc=event.getPlayer().getLocation();
    event.getPlayer().sendMessage("String_Node_Str" + p_loc.getBlockX() + "String_Node_Str"+ p_loc.getBlockY()+ "String_Node_Str"+ p_loc.getBlockZ());
  }
  if (split[0].equalsIgnoreCase("String_Node_Str") && j2.hasFlag(player,Flag.FUN)) {
    if (split.length == 1) {
      String warps_s=j2.warps.listWarps(player);
      if (warps_s.equalsIgnoreCase("String_Node_Str")) {
        player.sendMessage(ChatColor.RED + "String_Node_Str" + ChatColor.WHITE+ warps_s);
        player.sendMessage(ChatColor.RED + "String_Node_Str");
      }
 else {
        player.sendMessage("String_Node_Str");
      }
    }
 else {
      Warp warp=j2.warps.getPublicWarp(split[1]);
      if (warp != null && j2.hasFlag(player,warp.getFlag())) {
        player.sendMessage(ChatColor.RED + "String_Node_Str");
        player.teleportTo(warp.getLocation());
      }
 else {
        player.sendMessage(ChatColor.RED + "String_Node_Str");
      }
    }
    event.setCancelled(true);
    return;
  }
  if (split[0].equalsIgnoreCase("String_Node_Str") && j2.hasFlag(player,Flag.FUN)) {
    if (split.length == 1) {
      String homes_s=j2.warps.listHomes(player.getName());
      if (!homes_s.equalsIgnoreCase("String_Node_Str")) {
        player.sendMessage(ChatColor.RED + "String_Node_Str" + ChatColor.WHITE+ homes_s);
        player.sendMessage(ChatColor.RED + "String_Node_Str");
      }
 else {
        player.sendMessage(ChatColor.RED + "String_Node_Str");
        player.sendMessage(ChatColor.RED + "String_Node_Str");
      }
    }
 else {
      Warp home=j2.warps.getUserWarp(player.getName(),split[1]);
      if (home != null) {
        player.sendMessage(ChatColor.RED + "String_Node_Str");
        player.teleportTo(home.getLocation());
      }
 else {
        player.sendMessage(ChatColor.RED + "String_Node_Str");
      }
    }
    event.setCancelled(true);
    return;
  }
  if (split[0].equalsIgnoreCase("String_Node_Str") && j2.hasFlag(player,Flag.ADMIN)) {
    if (split.length == 1) {
      player.sendMessage(ChatColor.RED + "String_Node_Str");
      player.sendMessage(ChatColor.RED + "String_Node_Str");
      player.sendMessage(ChatColor.RED + "String_Node_Str");
    }
 else {
      Flag flag=null;
      if (split.length > 2) {
        flag=Flag.byChar(split[2].charAt(0));
      }
      Warp newWarp=new Warp(split[1],player.getName(),player.getLocation(),flag);
      j2.warps.addWarp(newWarp);
      player.sendMessage(ChatColor.RED + "String_Node_Str");
    }
    event.setCancelled(true);
    return;
  }
  if (split[0].equalsIgnoreCase("String_Node_Str") && j2.hasFlag(player,Flag.ADMIN)) {
    if (split.length == 1) {
      player.sendMessage(ChatColor.RED + "String_Node_Str");
    }
 else {
      Warp newWarp=new Warp(split[1],player.getName(),player.getLocation(),Flag.byChar('0'));
      j2.warps.addWarp(newWarp);
      player.sendMessage(ChatColor.RED + "String_Node_Str");
    }
    event.setCancelled(true);
    return;
  }
  if (split[0].equalsIgnoreCase("String_Node_Str") && j2.hasFlag(player,Flag.ADMIN) && split.length > 1) {
    String toRemove=split[1];
    player.sendMessage(ChatColor.RED + "String_Node_Str" + toRemove);
    j2.warps.killWarp(j2.warps.getPublicWarp(toRemove));
    event.setCancelled(true);
    return;
  }
  if (split[0].equalsIgnoreCase("String_Node_Str") && j2.hasFlag(player,Flag.FUN)) {
    if (split.length == 1) {
      player.sendMessage(ChatColor.RED + "String_Node_Str");
      if (j2.hasFlag(player,Flag.ADMIN)) {
        player.sendMessage(ChatColor.RED + "String_Node_Str");
      }
    }
    if (split.length == 2) {
      String toRemove=split[1];
      player.sendMessage(ChatColor.RED + "String_Node_Str" + toRemove);
      j2.warps.killWarp(j2.warps.getUserWarp(player.getName(),toRemove));
    }
    if (split.length == 3 && j2.hasFlag(player,Flag.ADMIN)) {
      String toRemove=split[1];
      String plr=split[2];
      player.sendMessage(ChatColor.RED + "String_Node_Str" + toRemove+ "String_Node_Str"+ plr);
      j2.warps.killWarp(j2.warps.getUserWarp(plr,toRemove));
    }
    event.setCancelled(true);
    return;
  }
  if (split[0].equalsIgnoreCase("String_Node_Str") && j2.hasFlag(player,Flag.ADMIN)) {
    if (split.length == 1) {
      player.sendMessage(ChatColor.RED + "String_Node_Str");
      player.sendMessage(ChatColor.RED + "String_Node_Str");
      player.sendMessage(ChatColor.RED + "String_Node_Str");
      player.sendMessage(ChatColor.RED + "String_Node_Str");
    }
    if (split.length == 2) {
      String target=split[1];
      boolean isOnline=j2.users.isOnline(target);
      if (!isOnline) {
        j2.warps.loadPlayer(target);
      }
      player.sendMessage(ChatColor.RED + target + "String_Node_Str"+ ChatColor.WHITE+ j2.warps.listHomes(target));
      if (!isOnline) {
        j2.warps.dropPlayer(target);
      }
    }
    if (split.length == 3) {
      String target=split[1];
      boolean isOnline=j2.users.isOnline(target);
      if (!isOnline) {
        j2.warps.loadPlayer(target);
      }
      Warp warptarget=j2.warps.getUserWarp(target,split[2]);
      if (warptarget != null) {
        player.sendMessage(ChatColor.RED + "String_Node_Str");
        player.teleportTo(warptarget.getLocation());
      }
 else {
        player.sendMessage(ChatColor.RED + "String_Node_Str");
      }
      if (!isOnline) {
        j2.warps.dropPlayer(target);
      }
    }
    event.setCancelled(true);
    return;
  }
}

Fixed version (ground truth):
@Override public void onPlayerCommand(PlayerChatEvent event){
  String[] split=event.getMessage().split("String_Node_Str");
  Player player=event.getPlayer();
  if (j2.hasFlag(player,Flag.JAILED)) {
    if (split[0].equalsIgnoreCase("String_Node_Str")) {
      j2.users.getUser(player).dropFlag(Flag.JAILED);
    }
    event.setCancelled(true);
    return;
  }
  if (split[0].equalsIgnoreCase("String_Node_Str")) {
    for (    String line : j2.rules) {
      player.sendMessage(line);
    }
    event.setCancelled(true);
    return;
  }
  if (split[0].equalsIgnoreCase("String_Node_Str")) {
    for (    String line : j2.blacklist) {
      player.sendMessage(line);
    }
    event.setCancelled(true);
    return;
  }
  if (split[0].equalsIgnoreCase("String_Node_Str")) {
    for (    String line : j2.intro) {
      player.sendMessage(line);
    }
    event.setCancelled(true);
    return;
  }
  if (split[0].equalsIgnoreCase("String_Node_Str") && j2.hasFlag(player,Flag.TRUSTED)) {
    String playerName=player.getName().toLowerCase();
    if (j2.tpProtect.getBoolean(playerName,false)) {
      j2.tpProtect.setBoolean(playerName,false);
      player.sendMessage(ChatColor.RED + "String_Node_Str");
    }
 else {
      j2.tpProtect.setBoolean(playerName,true);
      player.sendMessage(ChatColor.RED + "String_Node_Str");
    }
    event.setCancelled(true);
    return;
  }
  if (split[0].equalsIgnoreCase("String_Node_Str") && (j2.hasFlag(player,Flag.FUN))) {
    List<Player> inquest=j2.getServer().matchPlayer(split[1]);
    if (inquest.size() == 1) {
      Player inquestion=inquest.get(0);
      if (!j2.hasFlag(player,Flag.ADMIN) && inquestion != null && (j2.hasFlag(inquestion,Flag.TRUSTED)) && j2.tpProtect.getBoolean(inquestion.getName().toLowerCase(),false)) {
        player.sendMessage(ChatColor.RED + "String_Node_Str");
      }
 else       if (inquestion.getName().equalsIgnoreCase(player.getName())) {
        player.sendMessage(ChatColor.RED + "String_Node_Str");
      }
 else {
        player.teleportTo(inquestion.getLocation());
        player.sendMessage("String_Node_Str");
        j2.log.info("String_Node_Str" + player.getName() + "String_Node_Str"+ inquestion.getName());
      }
    }
 else {
      player.sendMessage(ChatColor.RED + "String_Node_Str");
    }
    event.setCancelled(true);
    return;
  }
  if (split[0].equalsIgnoreCase("String_Node_Str") && j2.hasFlag(player,Flag.ADMIN)) {
    List<Player> inquest=j2.getServer().matchPlayer(split[1]);
    if (inquest.size() == 1) {
      Player inquestion=inquest.get(0);
      if (inquestion.getName().equalsIgnoreCase(player.getName())) {
        player.sendMessage(ChatColor.RED + "String_Node_Str");
      }
 else {
        inquestion.teleportTo(player.getLocation());
        inquestion.sendMessage("String_Node_Str");
        player.sendMessage("String_Node_Str" + inquestion.getName());
        j2.log.info("String_Node_Str" + player.getName() + "String_Node_Str"+ inquestion.getName()+ "String_Node_Str");
      }
    }
 else {
      player.sendMessage(ChatColor.RED + "String_Node_Str");
    }
    event.setCancelled(true);
    return;
  }
  if (split[0].equalsIgnoreCase("String_Node_Str")) {
    if (split.length < 3) {
      player.sendMessage(ChatColor.RED + "String_Node_Str");
      event.setCancelled(true);
      return;
    }
    List<Player> inquest=j2.getServer().matchPlayer(split[1]);
    if (inquest.size() == 1) {
      Player inquestion=inquest.get(0);
      player.sendMessage("String_Node_Str" + player.getName() + "String_Node_Str"+ j2.combineSplit(2,split,"String_Node_Str"));
      inquestion.sendMessage("String_Node_Str" + player.getName() + "String_Node_Str"+ j2.combineSplit(2,split,"String_Node_Str"));
      j2.log.info("String_Node_Str" + inquestion.getName() + "String_Node_Str"+ player.getName()+ "String_Node_Str"+ j2.combineSplit(2,split,"String_Node_Str"));
    }
 else {
      player.sendMessage(ChatColor.RED + "String_Node_Str");
    }
    event.setCancelled(true);
    return;
  }
  if ((split[0].equalsIgnoreCase("String_Node_Str") || split[0].equalsIgnoreCase("String_Node_Str")) && j2.hasFlag(player,Flag.FUN)) {
    if (split.length < 2) {
      player.sendMessage(ChatColor.RED + "String_Node_Str");
      event.setCancelled(true);
      return;
    }
    int item=0;
    int amount=1;
    int dataType=-1;
    try {
      if (split[1].contains("String_Node_Str")) {
        String[] data=split[1].split("String_Node_Str");
        try {
          dataType=Integer.valueOf(data[1]);
        }
 catch (        NumberFormatException e) {
          dataType=-1;
        }
        item=Integer.valueOf(data[0]);
      }
 else {
        item=Integer.valueOf(split[1]);
      }
      if (split.length > 2) {
        amount=Integer.valueOf(split[2]);
      }
 else {
        amount=1;
      }
    }
 catch (    NumberFormatException e) {
      player.sendMessage(ChatColor.RED + "String_Node_Str");
      return;
    }
    if ((new ItemStack(item)).getType() == null || item == 0) {
      player.sendMessage(ChatColor.RED + "String_Node_Str");
      event.setCancelled(true);
      return;
    }
    if (dataType != -1) {
      player.getWorld().dropItem(player.getLocation(),new ItemStack(item,amount,((byte)dataType)));
    }
 else {
      player.getWorld().dropItem(player.getLocation(),new ItemStack(item,amount));
    }
    player.sendMessage(ChatColor.RED + "String_Node_Str");
    event.setCancelled(true);
    return;
  }
  if (split[0].equalsIgnoreCase("String_Node_Str") && j2.hasFlag(player,Flag.ADMIN)) {
    if (split.length != 2) {
      player.sendMessage(ChatColor.RED + "String_Node_Str");
      event.setCancelled(true);
      return;
    }
    long desired;
    if (split[1].equalsIgnoreCase("String_Node_Str")) {
      desired=0;
    }
 else     if (split[1].equalsIgnoreCase("String_Node_Str")) {
      desired=13000;
    }
 else {
      player.sendMessage(ChatColor.RED + "String_Node_Str");
      event.setCancelled(true);
      return;
    }
    long curTime=j2.getServer().getWorlds().get(0).getTime();
    long margin=(desired - curTime) % 24000;
    if (margin < 0) {
      margin+=24000;
    }
    j2.getServer().getWorlds().get(0).setTime(curTime + margin);
    player.sendMessage(ChatColor.RED + "String_Node_Str");
    event.setCancelled(true);
    return;
  }
  if (split[0].equalsIgnoreCase("String_Node_Str") || split[0].equalsIgnoreCase("String_Node_Str")) {
    Player[] players=j2.getServer().getOnlinePlayers();
    String msg="String_Node_Str" + players.length + "String_Node_Str";
    for (    Player p : players) {
      msg+="String_Node_Str" + p.getName();
    }
    player.sendMessage(msg);
    event.setCancelled(true);
    return;
  }
  if (split[0].equalsIgnoreCase("String_Node_Str") && j2.hasFlag(player,Flag.ADMIN)) {
    if (split.length < 2) {
      event.getPlayer().sendMessage(ChatColor.RED + "String_Node_Str");
      event.setCancelled(true);
      return;
    }
    String playerName=player.getName();
    String message=j2.combineSplit(1,split,"String_Node_Str");
    j2.chat.aMsg(playerName,message);
    event.setCancelled(true);
    return;
  }
  if (split[0].equalsIgnoreCase("String_Node_Str")) {
    if (split.length > 1) {
      String playerName=player.getName();
      String theReport=j2.combineSplit(1,split,"String_Node_Str");
      String message="String_Node_Str" + playerName + "String_Node_Str"+ theReport;
      String ircmessage="String_Node_Str" + playerName + "String_Node_Str"+ theReport;
      j2.chat.msgByFlag(Flag.ADMIN,message);
      j2.irc.ircAdminMsg(ircmessage);
      j2.log.info(ircmessage);
      Report report=new Report(0,player.getLocation(),player.getName(),theReport,(new Date().getTime()) / 1000);
      j2.reports.addReport(report);
      player.sendMessage(ChatColor.RED + "String_Node_Str");
    }
 else {
      player.sendMessage(ChatColor.RED + "String_Node_Str");
      player.sendMessage(ChatColor.RED + "String_Node_Str");
    }
    event.setCancelled(true);
    return;
  }
  if (split[0].equalsIgnoreCase("String_Node_Str") && j2.hasFlag(player,Flag.ADMIN)) {
    ArrayList<Report> reps=j2.reports.getReports();
    int size=reps.size();
    if (size == 0) {
      player.sendMessage(ChatColor.RED + "String_Node_Str");
      event.setCancelled(true);
      return;
    }
    player.sendMessage(ChatColor.DARK_PURPLE + "String_Node_Str" + size+ "String_Node_Str");
    for (    Report r : reps) {
      player.sendMessage(ChatColor.DARK_PURPLE + "String_Node_Str" + r.getID()+ "String_Node_Str"+ ChatColor.WHITE+ r.getUser()+ ChatColor.DARK_PURPLE+ "String_Node_Str"+ ChatColor.WHITE+ r.getMessage());
    }
    event.setCancelled(true);
    return;
  }
  if (split[0].equalsIgnoreCase("String_Node_Str") && j2.hasFlag(player,Flag.ADMIN)) {
    if (split.length < 2) {
      event.getPlayer().sendMessage(ChatColor.RED + "String_Node_Str");
      event.setCancelled(true);
      return;
    }
    String playerName=player.getName();
    String text="String_Node_Str";
    text+=j2.combineSplit(1,split,"String_Node_Str");
    j2.chat.gMsg(playerName,text);
    event.setCancelled(true);
    return;
  }
  if (split[0].equalsIgnoreCase("String_Node_Str") && j2.hasFlag(player,Flag.ADMIN)) {
    if (split.length < 3) {
      player.sendMessage(ChatColor.RED + "String_Node_Str");
      player.sendMessage(ChatColor.RED + "String_Node_Str");
      event.setCancelled(true);
      return;
    }
    String adminName=player.getName();
    j2.kickbans.callBan(adminName,split,player.getLocation());
    event.setCancelled(true);
    return;
  }
  if (split[0].equalsIgnoreCase("String_Node_Str") && j2.hasFlag(player,Flag.ADMIN)) {
    if (split.length < 3) {
      player.sendMessage(ChatColor.RED + "String_Node_Str");
      event.setCancelled(true);
      return;
    }
    String adminName=player.getName();
    j2.kickbans.callKick(split[1],adminName,j2.combineSplit(2,split,"String_Node_Str"));
    event.setCancelled(true);
    return;
  }
  if (split[0].equalsIgnoreCase("String_Node_Str") && j2.hasFlag(player,Flag.ADMIN)) {
    if (split.length < 3) {
      player.sendMessage(ChatColor.RED + "String_Node_Str");
      player.sendMessage(ChatColor.RED + "String_Node_Str");
      event.setCancelled(true);
      return;
    }
    String adminName=player.getName();
    j2.kickbans.callAddBan(adminName,split,player.getLocation());
    event.setCancelled(true);
    return;
  }
  if ((split[0].equalsIgnoreCase("String_Node_Str") || split[0].equalsIgnoreCase("String_Node_Str")) && j2.hasFlag(player,Flag.ADMIN)) {
    if (split.length < 2) {
      player.sendMessage(ChatColor.RED + "String_Node_Str");
      event.setCancelled(true);
      return;
    }
    String name=split[1];
    String adminName=player.getName();
    j2.mysql.unban(name);
    j2.log.log(Level.INFO,"String_Node_Str" + name + "String_Node_Str"+ adminName);
    j2.chat.msgByFlag(Flag.ADMIN,ChatColor.RED + "String_Node_Str" + name+ "String_Node_Str"+ adminName);
    event.setCancelled(true);
    return;
  }
  if (split[0].equalsIgnoreCase("String_Node_Str") && j2.hasFlag(player,Flag.ADMIN)) {
    if (split.length == 1) {
      player.sendMessage("String_Node_Str");
      event.setCancelled(true);
      return;
    }
    List<Player> match=j2.getServer().matchPlayer(split[1]);
    if (match.size() != 1 || match.get(0) == null) {
      player.sendMessage("String_Node_Str");
      event.setCancelled(true);
      return;
    }
    Player who=match.get(0);
    String message="String_Node_Str" + match.get(0).getName() + "String_Node_Str";
    for (    Flag f : j2.users.getAllFlags(who)) {
      message+=f.getDescription() + "String_Node_Str";
    }
    player.sendMessage(message);
    j2.log.info(player.getName() + "String_Node_Str" + who.getName());
    event.setCancelled(true);
    return;
  }
  if (split[0].equalsIgnoreCase("String_Node_Str") && split.length > 1) {
    String message="String_Node_Str";
    message+=j2.combineSplit(1,split,"String_Node_Str");
    j2.chat.addChat(player.getName(),message);
    j2.irc.ircMsg("String_Node_Str" + player.getName() + "String_Node_Str"+ message);
  }
  if (split[0].equalsIgnoreCase("String_Node_Str") && j2.hasFlag(player,Flag.ADMIN)) {
    if (split.length == 1) {
      player.sendMessage(ChatColor.RED + "String_Node_Str");
      player.sendMessage(ChatColor.RED + "String_Node_Str");
      event.setCancelled(true);
      return;
    }
    String name=split[1];
    String reason="String_Node_Str";
    String admin=player.getName();
    if (split.length > 2)     reason=j2.combineSplit(2,split,"String_Node_Str");
    j2.kickbans.forceKick(name,reason);
    j2.log.log(Level.INFO,"String_Node_Str" + name + "String_Node_Str"+ admin+ "String_Node_Str"+ reason);
    j2.chat.msgByFlag(Flag.ADMIN,ChatColor.RED + "String_Node_Str" + name+ "String_Node_Str"+ admin+ "String_Node_Str"+ reason);
    j2.chat.msgByFlagless(Flag.ADMIN,ChatColor.RED + name + "String_Node_Str"+ reason+ "String_Node_Str");
    event.setCancelled(true);
    return;
  }
  if (split[0].equalsIgnoreCase("String_Node_Str") && j2.hasFlag(player,Flag.SRSTAFF)) {
    j2.irc.loadIRCAdmins();
    j2.chat.msgByFlag(Flag.SRSTAFF,ChatColor.RED + "String_Node_Str" + player.getName());
    j2.log.info(player.getName() + "String_Node_Str");
    event.setCancelled(true);
    return;
  }
  if (split[0].equalsIgnoreCase("String_Node_Str") && j2.hasFlag(player,Flag.SRSTAFF)) {
    j2.loadData();
    j2.chat.msgByFlag(Flag.SRSTAFF,"String_Node_Str" + player.getName());
    j2.log.info("String_Node_Str" + player.getName());
    event.setCancelled(true);
    return;
  }
  if (split[0].equalsIgnoreCase("String_Node_Str") && j2.hasFlag(player,Flag.SRSTAFF)) {
    if (!j2.maintenance) {
      j2.log.info(player.getName() + "String_Node_Str");
      j2.maintenance=true;
      for (      Player p : j2.getServer().getOnlinePlayers()) {
        if (p != null && !j2.hasFlag(player,Flag.ADMIN)) {
          p.sendMessage("String_Node_Str");
          p.kickPlayer("String_Node_Str");
        }
      }
      j2.chat.msgByFlag(Flag.ADMIN,"String_Node_Str" + player.getName());
    }
 else {
      j2.log.info(player.getName() + "String_Node_Str");
      j2.chat.msgByFlag(Flag.ADMIN,"String_Node_Str" + player.getName());
      j2.maintenance=false;
    }
    event.setCancelled(true);
    return;
  }
  if (split[0].equalsIgnoreCase("String_Node_Str") && j2.hasFlag(player,Flag.ADMIN)) {
    player.sendMessage("String_Node_Str");
    j2.log.info(player.getName() + "String_Node_Str");
    j2.OneByOne=player;
    event.setCancelled(true);
    return;
  }
  if (split[0].equalsIgnoreCase("String_Node_Str") && j2.hasFlag(player,Flag.SRSTAFF)) {
    String action=split[2];
    if (split.length < 4 || !(action.equalsIgnoreCase("String_Node_Str") || action.equalsIgnoreCase("String_Node_Str"))) {
      player.sendMessage(ChatColor.RED + "String_Node_Str");
      event.setCancelled(true);
      return;
    }
    String name=split[1];
    char flag=split[3].charAt(0);
    User user=j2.users.getUser(name);
    if (user == null) {
      user=j2.mysql.getUser(name);
    }
    if (action.equalsIgnoreCase("String_Node_Str")) {
      user.addFlag(Flag.byChar(flag));
    }
 else {
      user.dropFlag(Flag.byChar(flag));
    }
    String log=ChatColor.RED + player.getName() + "String_Node_Str"+ name+ "String_Node_Str"+ action+ "String_Node_Str"+ Flag.byChar(flag).getDescription();
    j2.chat.msgByFlag(Flag.ADMIN,log);
    j2.log.info(log);
    event.setCancelled(true);
    return;
  }
  if (split[0].equalsIgnoreCase("String_Node_Str")) {
    Location p_loc=event.getPlayer().getLocation();
    event.getPlayer().sendMessage("String_Node_Str" + p_loc.getBlockX() + "String_Node_Str"+ p_loc.getBlockY()+ "String_Node_Str"+ p_loc.getBlockZ());
  }
  if (split[0].equalsIgnoreCase("String_Node_Str") && j2.hasFlag(player,Flag.FUN)) {
    if (split.length == 1) {
      String warps_s=j2.warps.listWarps(player);
      if (warps_s.equalsIgnoreCase("String_Node_Str")) {
        player.sendMessage(ChatColor.RED + "String_Node_Str" + ChatColor.WHITE+ warps_s);
        player.sendMessage(ChatColor.RED + "String_Node_Str");
      }
 else {
        player.sendMessage("String_Node_Str");
      }
    }
 else {
      Warp warp=j2.warps.getPublicWarp(split[1]);
      if (warp != null && j2.hasFlag(player,warp.getFlag())) {
        player.sendMessage(ChatColor.RED + "String_Node_Str");
        player.teleportTo(warp.getLocation());
      }
 else {
        player.sendMessage(ChatColor.RED + "String_Node_Str");
      }
    }
    event.setCancelled(true);
    return;
  }
  if (split[0].equalsIgnoreCase("String_Node_Str") && j2.hasFlag(player,Flag.FUN)) {
    if (split.length == 1) {
      String homes_s=j2.warps.listHomes(player.getName());
      if (!homes_s.equalsIgnoreCase("String_Node_Str")) {
        player.sendMessage(ChatColor.RED + "String_Node_Str" + ChatColor.WHITE+ homes_s);
        player.sendMessage(ChatColor.RED + "String_Node_Str");
      }
 else {
        player.sendMessage(ChatColor.RED + "String_Node_Str");
        player.sendMessage(ChatColor.RED + "String_Node_Str");
      }
    }
 else {
      Warp home=j2.warps.getUserWarp(player.getName(),split[1]);
      if (home != null) {
        player.sendMessage(ChatColor.RED + "String_Node_Str");
        player.teleportTo(home.getLocation());
      }
 else {
        player.sendMessage(ChatColor.RED + "String_Node_Str");
      }
    }
    event.setCancelled(true);
    return;
  }
  if (split[0].equalsIgnoreCase("String_Node_Str") && j2.hasFlag(player,Flag.ADMIN)) {
    if (split.length == 1) {
      player.sendMessage(ChatColor.RED + "String_Node_Str");
      player.sendMessage(ChatColor.RED + "String_Node_Str");
      player.sendMessage(ChatColor.RED + "String_Node_Str");
    }
 else {
      Flag flag=Flag.Z_SPAREWARP_DESIGNATION;
      if (split.length > 2) {
        flag=Flag.byChar(split[2].charAt(0));
      }
      Warp newWarp=new Warp(split[1],player.getName(),player.getLocation(),flag);
      j2.warps.addWarp(newWarp);
      player.sendMessage(ChatColor.RED + "String_Node_Str");
    }
    event.setCancelled(true);
    return;
  }
  if (split[0].equalsIgnoreCase("String_Node_Str") && j2.hasFlag(player,Flag.ADMIN)) {
    if (split.length == 1) {
      player.sendMessage(ChatColor.RED + "String_Node_Str");
    }
 else {
      Warp newWarp=new Warp(split[1],player.getName(),player.getLocation(),Flag.byChar('0'));
      j2.warps.addWarp(newWarp);
      player.sendMessage(ChatColor.RED + "String_Node_Str");
    }
    event.setCancelled(true);
    return;
  }
  if (split[0].equalsIgnoreCase("String_Node_Str") && j2.hasFlag(player,Flag.ADMIN) && split.length > 1) {
    String toRemove=split[1];
    player.sendMessage(ChatColor.RED + "String_Node_Str" + toRemove);
    j2.warps.killWarp(j2.warps.getPublicWarp(toRemove));
    event.setCancelled(true);
    return;
  }
  if (split[0].equalsIgnoreCase("String_Node_Str") && j2.hasFlag(player,Flag.FUN)) {
    if (split.length == 1) {
      player.sendMessage(ChatColor.RED + "String_Node_Str");
      if (j2.hasFlag(player,Flag.ADMIN)) {
        player.sendMessage(ChatColor.RED + "String_Node_Str");
      }
    }
    if (split.length == 2) {
      String toRemove=split[1];
      player.sendMessage(ChatColor.RED + "String_Node_Str" + toRemove);
      j2.warps.killWarp(j2.warps.getUserWarp(player.getName(),toRemove));
    }
    if (split.length == 3 && j2.hasFlag(player,Flag.ADMIN)) {
      String toRemove=split[1];
      String plr=split[2];
      player.sendMessage(ChatColor.RED + "String_Node_Str" + toRemove+ "String_Node_Str"+ plr);
      j2.warps.killWarp(j2.warps.getUserWarp(plr,toRemove));
    }
    event.setCancelled(true);
    return;
  }
  if (split[0].equalsIgnoreCase("String_Node_Str") && j2.hasFlag(player,Flag.ADMIN)) {
    if (split.length == 1) {
      player.sendMessage(ChatColor.RED + "String_Node_Str");
      player.sendMessage(ChatColor.RED + "String_Node_Str");
      player.sendMessage(ChatColor.RED + "String_Node_Str");
      player.sendMessage(ChatColor.RED + "String_Node_Str");
    }
    if (split.length == 2) {
      String target=split[1];
      boolean isOnline=j2.users.isOnline(target);
      if (!isOnline) {
        j2.warps.loadPlayer(target);
      }
      player.sendMessage(ChatColor.RED + target + "String_Node_Str"+ ChatColor.WHITE+ j2.warps.listHomes(target));
      if (!isOnline) {
        j2.warps.dropPlayer(target);
      }
    }
    if (split.length == 3) {
      String target=split[1];
      boolean isOnline=j2.users.isOnline(target);
      if (!isOnline) {
        j2.warps.loadPlayer(target);
      }
      Warp warptarget=j2.warps.getUserWarp(target,split[2]);
      if (warptarget != null) {
        player.sendMessage(ChatColor.RED + "String_Node_Str");
        player.teleportTo(warptarget.getLocation());
      }
 else {
        player.sendMessage(ChatColor.RED + "String_Node_Str");
      }
      if (!isOnline) {
        j2.warps.dropPlayer(target);
      }
    }
    event.setCancelled(true);
    return;
  }
}