Program: 41998
Project: 41998
Buggy source:
public boolean execute(ICommandSender sender,String[] args) throws Exception {
  if (args.length < 2 && args.length >= 3) {
    throw new BadUsageException(getUsage());
  }
  if (args[1].length() > 16 || !validUserPattern.matcher(args[1]).matches() || "String_Node_Str".equalsIgnoreCase(args[1])) {
    throw new IllegalArgumentException(C("String_Node_Str"));
  }
  if ("String_Node_Str".equalsIgnoreCase(args[1]) && plugin.getConfig().getBoolean("String_Node_Str")) {
    sender.sendMessage("String_Node_Str");
    return true;
  }
  IPlayer player=(IPlayer)sender;
  if (player.hasPermission(PermissionNames.ADMIN_TRUST) || player.hasPermission(PermissionNames.USER_TRUST)) {
    IWorld world=player.getWorld();
    PlotMapInfo pmi=manager.getMap(world);
    if (manager.isPlotWorld(world)) {
      PlotId id=manager.getPlotId(player);
      if (id == null) {
        player.sendMessage(C("String_Node_Str"));
        return true;
      }
 else       if (!manager.isPlotAvailable(id,pmi)) {
        Plot plot=manager.getPlotById(id,pmi);
        if (plot == null) {
          return true;
        }
        String trust=args[1];
        if (player.getUniqueId().equals(plot.getOwnerId()) || player.hasPermission(PermissionNames.ADMIN_TRUST)) {
          if (plot.isAllowedConsulting(trust)) {
            player.sendMessage(C("String_Node_Str") + "String_Node_Str" + trust+ "String_Node_Str"+ C("String_Node_Str"));
          }
 else {
            PlotAddTrustedEvent event=new PlotAddTrustedEvent(world,plot,player,trust);
            serverBridge.getEventBus().post(event);
            serverBridge.getEventBus().post(event);
            if (manager.isEconomyEnabled(pmi)) {
              double price=pmi.getAddPlayerPrice();
              if (serverBridge.has(player,price)) {
                player.sendMessage(C("String_Node_Str") + "String_Node_Str" + C("String_Node_Str")+ "String_Node_Str"+ serverBridge.getEconomy().format(price));
                return true;
              }
 else               if (!event.isCancelled()) {
                EconomyResponse er=serverBridge.withdrawPlayer(player,price);
                if (!er.transactionSuccess()) {
                  player.sendMessage(er.errorMessage);
                  serverBridge.getLogger().warning(er.errorMessage);
                  return true;
                }
              }
 else {
                return true;
              }
            }
            if (!event.isCancelled()) {
              IPlayer allowed2=plugin.getServerBridge().getPlayer(trust);
              if (allowed2 != null) {
                plot.addAllowed(allowed2.getUniqueId().toString());
                plot.removeDenied(allowed2.getUniqueId().toString());
              }
 else {
                plot.addAllowed(trust);
                plot.removeDenied(trust);
              }
              player.sendMessage(C("String_Node_Str") + "String_Node_Str" + trust+ "String_Node_Str"+ C("String_Node_Str"));
              if (isAdvancedLogging()) {
                serverBridge.getLogger().info(player.getName() + "String_Node_Str" + C("String_Node_Str")+ "String_Node_Str"+ trust+ "String_Node_Str"+ C("String_Node_Str")+ "String_Node_Str"+ id);
              }
            }
          }
        }
 else {
          player.sendMessage(C("String_Node_Str") + "String_Node_Str" + id+ "String_Node_Str"+ C("String_Node_Str"));
        }
      }
 else {
        player.sendMessage(C("String_Node_Str") + "String_Node_Str" + id+ "String_Node_Str"+ C("String_Node_Str"));
      }
    }
 else {
      player.sendMessage(C("String_Node_Str"));
    }
  }
 else {
    return false;
  }
  return true;
}

Fixed version (ground truth):
public boolean execute(ICommandSender sender,String[] args) throws Exception {
  if (args.length < 2 && args.length >= 3) {
    throw new BadUsageException(getUsage());
  }
  if (args[1].length() > 16 || !validUserPattern.matcher(args[1]).matches() || "String_Node_Str".equalsIgnoreCase(args[1])) {
    throw new IllegalArgumentException(C("String_Node_Str"));
  }
  if ("String_Node_Str".equals(args[1]) && plugin.getConfig().getBoolean("String_Node_Str")) {
    sender.sendMessage("String_Node_Str");
    return true;
  }
  IPlayer player=(IPlayer)sender;
  if (player.hasPermission(PermissionNames.ADMIN_TRUST) || player.hasPermission(PermissionNames.USER_TRUST)) {
    IWorld world=player.getWorld();
    PlotMapInfo pmi=manager.getMap(world);
    if (manager.isPlotWorld(world)) {
      PlotId id=manager.getPlotId(player);
      if (id == null) {
        player.sendMessage(C("String_Node_Str"));
        return true;
      }
 else       if (!manager.isPlotAvailable(id,pmi)) {
        Plot plot=manager.getPlotById(id,pmi);
        if (plot == null) {
          return true;
        }
        String trust=args[1];
        if (player.getUniqueId().equals(plot.getOwnerId()) || player.hasPermission(PermissionNames.ADMIN_TRUST)) {
          if (plot.isAllowedConsulting(trust)) {
            player.sendMessage(C("String_Node_Str") + "String_Node_Str" + trust+ "String_Node_Str"+ C("String_Node_Str"));
          }
 else {
            PlotAddTrustedEvent event=new PlotAddTrustedEvent(world,plot,player,trust);
            serverBridge.getEventBus().post(event);
            serverBridge.getEventBus().post(event);
            if (manager.isEconomyEnabled(pmi)) {
              double price=pmi.getAddPlayerPrice();
              if (serverBridge.has(player,price)) {
                player.sendMessage(C("String_Node_Str") + "String_Node_Str" + C("String_Node_Str")+ "String_Node_Str"+ serverBridge.getEconomy().get().format(price));
                return true;
              }
 else               if (!event.isCancelled()) {
                EconomyResponse er=serverBridge.withdrawPlayer(player,price);
                if (!er.transactionSuccess()) {
                  player.sendMessage(er.errorMessage);
                  serverBridge.getLogger().warning(er.errorMessage);
                  return true;
                }
              }
 else {
                return true;
              }
            }
            if (!event.isCancelled()) {
              IPlayer allowed2=plugin.getServerBridge().getPlayer(trust);
              if (allowed2 != null) {
                plot.addTrusted(allowed2.getUniqueId().toString());
                plot.removeDenied(allowed2.getUniqueId().toString());
              }
 else {
                plot.addTrusted(trust);
                plot.removeDenied(trust);
              }
              player.sendMessage(C("String_Node_Str") + "String_Node_Str" + trust+ "String_Node_Str"+ C("String_Node_Str"));
              if (isAdvancedLogging()) {
                serverBridge.getLogger().info(player.getName() + "String_Node_Str" + C("String_Node_Str")+ "String_Node_Str"+ trust+ "String_Node_Str"+ C("String_Node_Str")+ "String_Node_Str"+ id);
              }
            }
          }
        }
 else {
          player.sendMessage(C("String_Node_Str") + "String_Node_Str" + id+ "String_Node_Str"+ C("String_Node_Str"));
        }
      }
 else {
        player.sendMessage(C("String_Node_Str") + "String_Node_Str" + id+ "String_Node_Str"+ C("String_Node_Str"));
      }
    }
 else {
      player.sendMessage(C("String_Node_Str"));
    }
  }
 else {
    return false;
  }
  return true;
}