Program: 57902
Project: 57902
Buggy source:
@EventHandler(priority=EventPriority.LOWEST,ignoreCancelled=true) public boolean onPlayerCommand(PlayerCommandPreprocessEvent e){
  WorldEditPlugin worldedit=BukkitMain.worldEdit;
  if (worldedit == null) {
    HandlerList.unregisterAll(this);
    return true;
  }
  Player p=e.getPlayer();
  PlotPlayer pp=BukkitUtil.getPlayer(p);
  if (!PS.get().hasPlotArea(p.getWorld().getName())) {
    return true;
  }
  String message=e.getMessage();
  String cmd=message.toLowerCase();
  String[] split=cmd.split("String_Node_Str");
  long maxVolume=Settings.WE_MAX_VOLUME;
  long maxIterations=Settings.WE_MAX_ITERATIONS;
  if (pp.getAttribute("String_Node_Str")) {
    return true;
  }
  boolean single=true;
  if (split.length >= 2) {
    String reduced=reduceCmd(split[0],single);
    String reduced2=reduceCmd(split[0] + "String_Node_Str" + split[1],single);
    if (this.rad1.contains(reduced)) {
      if (delay(p,message,false)) {
        e.setCancelled(true);
        return true;
      }
      long volume=getInt(split[1]) * 256;
      return checkVolume(pp,volume,maxVolume,e);
    }
    if (this.rad2.contains(reduced)) {
      if (delay(p,message,false)) {
        e.setCancelled(true);
        return true;
      }
      if (split.length >= 3) {
        long volume=getInt(split[2]) * 256;
        return checkVolume(pp,volume,maxVolume,e);
      }
      return true;
    }
    if (this.rad2_1.contains(reduced)) {
      if (delay(p,message,false)) {
        e.setCancelled(true);
        return true;
      }
      if (split.length >= 4) {
        long volume=getInt(split[2]) * getInt(split[3]);
        return checkVolume(pp,volume,maxVolume,e);
      }
      return true;
    }
    if (this.rad2_2.contains(reduced)) {
      if (delay(p,message,false)) {
        e.setCancelled(true);
        return true;
      }
      if (split.length >= 3) {
        long radius=getInt(split[2]);
        long volume=radius * radius;
        return checkVolume(pp,volume,maxVolume,e);
      }
      return true;
    }
    if (this.rad2_3.contains(reduced2)) {
      if (delay(p,message,false)) {
        e.setCancelled(true);
        return true;
      }
      if (split.length >= 3) {
        if (split.length == 4) {
          int iterations=getInt(split[3]);
          if (iterations > maxIterations) {
            MainUtil.sendMessage(pp,C.WORLDEDIT_ITERATIONS.s().replaceAll("String_Node_Str",iterations + "String_Node_Str").replaceAll("String_Node_Str",maxIterations + "String_Node_Str"));
            e.setCancelled(true);
            if (Permissions.hasPermission(pp,"String_Node_Str")) {
              MainUtil.sendMessage(pp,C.WORLDEDIT_BYPASS);
            }
            return true;
          }
        }
        long radius=getInt(split[2]);
        long volume=radius * radius;
        return checkVolume(pp,volume,maxVolume,e);
      }
      return true;
    }
    if (this.rad3_1.contains(reduced2)) {
      if (delay(p,message,false)) {
        e.setCancelled(true);
        return true;
      }
      if (split.length >= 3) {
        int i=2;
        if (split[i].equalsIgnoreCase("String_Node_Str")) {
          i=3;
        }
        long radius=getInt(split[i]);
        long volume=radius * radius;
        return checkVolume(pp,volume,maxVolume,e);
      }
      return true;
    }
    if (this.rad3_2.contains(reduced2)) {
      if (delay(p,message,false)) {
        e.setCancelled(true);
        return true;
      }
      if (split.length >= 4) {
        int i=3;
        if (split[i].equalsIgnoreCase("String_Node_Str")) {
          i=4;
        }
        long radius=getInt(split[i]);
        long volume=radius * radius;
        return checkVolume(pp,volume,maxVolume,e);
      }
      return true;
    }
    if (this.regionExtend.contains(reduced)) {
      if (delay(p,message,false)) {
        e.setCancelled(true);
        return true;
      }
      return checkSelection(p,pp,getInt(split[1]),maxVolume,e);
    }
  }
  String reduced=reduceCmd(split[0],single);
  if (Settings.WE_BLACKLIST.contains(reduced)) {
    MainUtil.sendMessage(pp,C.WORLDEDIT_UNSAFE);
    e.setCancelled(true);
    if (Permissions.hasPermission(pp,"String_Node_Str")) {
      MainUtil.sendMessage(pp,C.WORLDEDIT_BYPASS);
    }
  }
  if (this.restricted.contains(reduced)) {
    Plot plot=pp.getCurrentPlot();
    if ((plot != null) && plot.isAdded(pp.getUUID())) {
      if (delay(p,message,false)) {
        e.setCancelled(true);
        return true;
      }
      return true;
    }
    e.setCancelled(true);
    MainUtil.sendMessage(pp,C.NO_PLOT_PERMS);
    if (Permissions.hasPermission(pp,"String_Node_Str")) {
      MainUtil.sendMessage(pp,C.WORLDEDIT_BYPASS);
    }
    return true;
  }
  if (this.region.contains(reduced)) {
    if (delay(p,message,false)) {
      e.setCancelled(true);
      return true;
    }
    return checkSelection(p,pp,1,maxVolume,e);
  }
  if (this.other.contains(reduced)) {
    if (delay(p,message,false)) {
      e.setCancelled(true);
      return true;
    }
  }
  return true;
}

Fixed version (ground truth):
@EventHandler(priority=EventPriority.LOWEST,ignoreCancelled=true) public boolean onPlayerCommand(PlayerCommandPreprocessEvent e){
  WorldEditPlugin worldedit=BukkitMain.worldEdit;
  if (worldedit == null) {
    HandlerList.unregisterAll(this);
    return true;
  }
  Player p=e.getPlayer();
  PlotPlayer pp=BukkitUtil.getPlayer(p);
  if (!PS.get().hasPlotArea(p.getWorld().getName())) {
    return true;
  }
  String message=e.getMessage();
  String cmd=message.toLowerCase();
  String[] split=cmd.split("String_Node_Str");
  long maxVolume=Settings.WE_MAX_VOLUME;
  long maxIterations=Settings.WE_MAX_ITERATIONS;
  if (pp.getAttribute("String_Node_Str")) {
    return true;
  }
  boolean single=true;
  if (split.length >= 2) {
    String reduced=reduceCmd(split[0],single);
    String reduced2=reduceCmd(split[0] + ' ' + split[1],single);
    if (this.rad1.contains(reduced)) {
      if (delay(p,message,false)) {
        e.setCancelled(true);
        return true;
      }
      long volume=getInt(split[1]) * 256;
      return checkVolume(pp,volume,maxVolume,e);
    }
    if (this.rad2.contains(reduced)) {
      if (delay(p,message,false)) {
        e.setCancelled(true);
        return true;
      }
      if (split.length >= 3) {
        long volume=getInt(split[2]) * 256;
        return checkVolume(pp,volume,maxVolume,e);
      }
      return true;
    }
    if (this.rad2_1.contains(reduced)) {
      if (delay(p,message,false)) {
        e.setCancelled(true);
        return true;
      }
      if (split.length >= 4) {
        long volume=getInt(split[2]) * getInt(split[3]);
        return checkVolume(pp,volume,maxVolume,e);
      }
      return true;
    }
    if (this.rad2_2.contains(reduced)) {
      if (delay(p,message,false)) {
        e.setCancelled(true);
        return true;
      }
      if (split.length >= 3) {
        long radius=getInt(split[2]);
        long volume=radius * radius;
        return checkVolume(pp,volume,maxVolume,e);
      }
      return true;
    }
    if (this.rad2_3.contains(reduced2)) {
      if (delay(p,message,false)) {
        e.setCancelled(true);
        return true;
      }
      if (split.length >= 3) {
        if (split.length == 4) {
          int iterations=getInt(split[3]);
          if (iterations > maxIterations) {
            MainUtil.sendMessage(pp,C.WORLDEDIT_ITERATIONS.s().replaceAll("String_Node_Str",String.valueOf(iterations)).replaceAll("String_Node_Str",String.valueOf(maxIterations)));
            e.setCancelled(true);
            if (Permissions.hasPermission(pp,"String_Node_Str")) {
              MainUtil.sendMessage(pp,C.WORLDEDIT_BYPASS);
            }
            return true;
          }
        }
        long radius=getInt(split[2]);
        long volume=radius * radius;
        return checkVolume(pp,volume,maxVolume,e);
      }
      return true;
    }
    if (this.rad3_1.contains(reduced2)) {
      if (delay(p,message,false)) {
        e.setCancelled(true);
        return true;
      }
      if (split.length >= 3) {
        int i=2;
        if (split[i].equalsIgnoreCase("String_Node_Str")) {
          i=3;
        }
        long radius=getInt(split[i]);
        long volume=radius * radius;
        return checkVolume(pp,volume,maxVolume,e);
      }
      return true;
    }
    if (this.rad3_2.contains(reduced2)) {
      if (delay(p,message,false)) {
        e.setCancelled(true);
        return true;
      }
      if (split.length >= 4) {
        int i=3;
        if (split[i].equalsIgnoreCase("String_Node_Str")) {
          i=4;
        }
        long radius=getInt(split[i]);
        long volume=radius * radius;
        return checkVolume(pp,volume,maxVolume,e);
      }
      return true;
    }
    if (this.regionExtend.contains(reduced)) {
      if (delay(p,message,false)) {
        e.setCancelled(true);
        return true;
      }
      return checkSelection(p,pp,getInt(split[1]),maxVolume,e);
    }
  }
  String reduced=reduceCmd(split[0],single);
  if (Settings.WE_BLACKLIST.contains(reduced)) {
    MainUtil.sendMessage(pp,C.WORLDEDIT_UNSAFE);
    e.setCancelled(true);
    if (Permissions.hasPermission(pp,"String_Node_Str")) {
      MainUtil.sendMessage(pp,C.WORLDEDIT_BYPASS);
    }
  }
  if (this.restricted.contains(reduced)) {
    Plot plot=pp.getCurrentPlot();
    if ((plot != null) && plot.isAdded(pp.getUUID())) {
      if (delay(p,message,false)) {
        e.setCancelled(true);
        return true;
      }
      return true;
    }
    e.setCancelled(true);
    MainUtil.sendMessage(pp,C.NO_PLOT_PERMS);
    if (Permissions.hasPermission(pp,"String_Node_Str")) {
      MainUtil.sendMessage(pp,C.WORLDEDIT_BYPASS);
    }
    return true;
  }
  if (this.region.contains(reduced)) {
    if (delay(p,message,false)) {
      e.setCancelled(true);
      return true;
    }
    return checkSelection(p,pp,1,maxVolume,e);
  }
  if (this.other.contains(reduced)) {
    if (delay(p,message,false)) {
      e.setCancelled(true);
      return true;
    }
  }
  return true;
}