Program: 57993
Project: 57993
Buggy source:
@Override public boolean onCommand(CommandCaller caller,String[] args){
  final PlotPlayer player=caller instanceof PlotPlayerCaller ? (PlotPlayer)caller.getSuperCaller() : null;
  final List<String> allowed_params=Arrays.asList("String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str");
  if (args.length > 0) {
    final String arg=args[0].toLowerCase();
switch (arg) {
case "String_Node_Str":
{
        if (player == null) {
          MainUtil.sendMessage(player,C.IS_CONSOLE);
          return false;
        }
        Plot plot=MainUtil.getPlot(player.getLocation());
        if (plot == null) {
          MainUtil.sendMessage(player,C.NOT_IN_PLOT);
          return false;
        }
        PlotAnalysis analysis=plot.getComplexity();
        if (analysis != null) {
          int complexity=analysis.getComplexity();
          MainUtil.sendMessage(player,"String_Node_Str" + analysis.changes);
          MainUtil.sendMessage(player,"String_Node_Str" + complexity);
          return true;
        }
        MainUtil.sendMessage(player,"String_Node_Str");
        HybridUtils.manager.analyzePlot(plot,new RunnableVal<PlotAnalysis>(){
          @Override public void run(){
            MainUtil.sendMessage(player,"String_Node_Str");
          }
        }
);
        return true;
      }
case "String_Node_Str":
{
      if (args.length != 2) {
        MainUtil.sendMessage(player,C.COMMAND_SYNTAX,"String_Node_Str");
        MainUtil.sendMessage(player,"String_Node_Str");
        return false;
      }
      double threshold;
      try {
        threshold=Integer.parseInt(args[1]) / 100d;
      }
 catch (      NumberFormatException e) {
        MainUtil.sendMessage(player,"String_Node_Str" + args[1]);
        MainUtil.sendMessage(player,"String_Node_Str");
        return false;
      }
      PlotAnalysis.calcOptimalModifiers(new Runnable(){
        @Override public void run(){
          PS.log("String_Node_Str");
        }
      }
,threshold);
      return true;
    }
case "String_Node_Str":
{
    if (ExpireManager.task != -1) {
      Bukkit.getScheduler().cancelTask(ExpireManager.task);
    }
 else {
      return MainUtil.sendMessage(player,"String_Node_Str");
    }
    ExpireManager.task=-1;
    return MainUtil.sendMessage(player,"String_Node_Str");
  }
case "String_Node_Str":
{
  if (args.length != 2) {
    MainUtil.sendMessage(player,C.COMMAND_SYNTAX,"String_Node_Str");
    return false;
  }
  String flag=args[1];
  for (  Plot plot : PS.get().getPlots()) {
    if (FlagManager.getPlotFlag(plot,flag) != null) {
      FlagManager.removePlotFlag(plot,flag);
    }
  }
  return MainUtil.sendMessage(player,"String_Node_Str" + flag);
}
case "String_Node_Str":
{
if (args.length != 2) {
  PS.log("String_Node_Str");
  return false;
}
boolean result;
if (!PS.get().isPlotWorld(args[1])) {
  MainUtil.sendMessage(player,C.NOT_VALID_PLOT_WORLD,args[1]);
  return false;
}
if (BukkitHybridUtils.regions != null) {
  result=((BukkitHybridUtils)(HybridUtils.manager)).scheduleRoadUpdate(args[1],BukkitHybridUtils.regions,0);
}
 else {
  result=HybridUtils.manager.scheduleRoadUpdate(args[1],0);
}
if (!result) {
  PS.log("String_Node_Str");
  return false;
}
return true;
}
case "String_Node_Str":
{
if (((BukkitHybridUtils)(HybridUtils.manager)).task == 0) {
PS.log("String_Node_Str");
return false;
}
((BukkitHybridUtils)(HybridUtils.manager)).task=0;
Bukkit.getScheduler().cancelTask(((BukkitHybridUtils)(HybridUtils.manager)).task);
PS.log("String_Node_Str");
while (BukkitHybridUtils.chunks.size() > 0) {
ChunkLoc chunk=BukkitHybridUtils.chunks.get(0);
BukkitHybridUtils.chunks.remove(0);
HybridUtils.manager.regenerateRoad(BukkitHybridUtils.world,chunk,0);
ChunkManager.manager.unloadChunk(BukkitHybridUtils.world,chunk);
}
PS.log("String_Node_Str");
return true;
}
case "String_Node_Str":
{
if (ExpireManager.task == -1) {
ExpireManager.runTask();
}
 else {
return MainUtil.sendMessage(player,"String_Node_Str");
}
return MainUtil.sendMessage(player,"String_Node_Str");
}
case "String_Node_Str":
{
if (args.length > 1) {
final String world=args[1];
if (!BlockManager.manager.isWorld(world)) {
return MainUtil.sendMessage(player,"String_Node_Str" + args[1]);
}
MainUtil.sendMessage(player,"String_Node_Str");
ExpireManager.updateExpired(args[1]);
return true;
}
return MainUtil.sendMessage(player,"String_Node_Str");
}
case "String_Node_Str":
{
if (args.length > 1) {
final String world=args[1];
if (!BlockManager.manager.isWorld(world)) {
return MainUtil.sendMessage(player,"String_Node_Str" + args[1]);
}
if (!ExpireManager.expiredPlots.containsKey(args[1])) {
return MainUtil.sendMessage(player,"String_Node_Str" + args[1]);
}
MainUtil.sendMessage(player,"String_Node_Str" + ExpireManager.expiredPlots.get(args[1]).size() + "String_Node_Str");
for (final Plot plot : ExpireManager.expiredPlots.get(args[1])) {
MainUtil.sendMessage(player,"String_Node_Str" + plot.world + "String_Node_Str"+ plot.id.x+ "String_Node_Str"+ plot.id.y+ "String_Node_Str"+ UUIDHandler.getName(plot.owner)+ "String_Node_Str"+ ExpireManager.dates.get(plot.owner));
}
return true;
}
return MainUtil.sendMessage(player,"String_Node_Str");
}
case "String_Node_Str":
{
if (args.length != 2) {
return MainUtil.sendMessage(player,"String_Node_Str");
}
final UUID uuid=UUIDHandler.getUUID(args[1]);
if (uuid == null) {
return MainUtil.sendMessage(player,"String_Node_Str" + args[1]);
}
final OfflinePlotPlayer op=UUIDHandler.getUUIDWrapper().getOfflinePlayer(uuid);
if ((op == null) || (op.getLastPlayed() == 0)) {
return MainUtil.sendMessage(player,"String_Node_Str" + args[1]);
}
final Timestamp stamp=new Timestamp(op.getLastPlayed());
final Date date=new Date(stamp.getTime());
MainUtil.sendMessage(player,"String_Node_Str" + args[1]);
MainUtil.sendMessage(player,"String_Node_Str" + uuid);
MainUtil.sendMessage(player,"String_Node_Str" + date.toGMTString());
MainUtil.sendMessage(player,"String_Node_Str" + date.toGMTString());
MainUtil.sendMessage(player,"String_Node_Str" + date.toLocaleString());
return true;
}
case "String_Node_Str":
{
if (args.length != 2) {
MainUtil.sendMessage(player,"String_Node_Str");
MainUtil.sendMessage(player,"String_Node_Str");
return MainUtil.sendMessage(player,"String_Node_Str");
}
final String world=args[1];
if (!BlockManager.manager.isWorld(world) || !PS.get().isPlotWorld(args[1])) {
return MainUtil.sendMessage(player,"String_Node_Str" + args[1]);
}
final ArrayList<ChunkLoc> empty=new ArrayList<>();
final boolean result=Trim.getTrimRegions(empty,world,new Runnable(){
@Override public void run(){
Trim.sendMessage("String_Node_Str");
Trim.sendMessage("String_Node_Str" + empty.size());
Trim.sendMessage("String_Node_Str" + (empty.size() * 1024) + "String_Node_Str");
Trim.sendMessage("String_Node_Str");
final File file=new File(PS.get().IMP.getDirectory() + File.separator + "String_Node_Str");
PrintWriter writer;
try {
writer=new PrintWriter(file);
for (final ChunkLoc loc : empty) {
writer.println(world + "String_Node_Str" + loc.x+ "String_Node_Str"+ loc.z+ "String_Node_Str");
}
writer.close();
Trim.sendMessage("String_Node_Str");
}
 catch (final FileNotFoundException e) {
e.printStackTrace();
Trim.sendMessage("String_Node_Str");
}
Trim.sendMessage("String_Node_Str");
Trim.sendMessage("String_Node_Str");
Trim.sendMessage("String_Node_Str");
Trim.sendMessage("String_Node_Str");
}
}
);
if (!result) {
MainUtil.sendMessage(player,"String_Node_Str");
}
return result;
}
}
}
MainUtil.sendMessage(player,"String_Node_Str" + StringUtils.join(allowed_params,"String_Node_Str") + "String_Node_Str");
return true;
}

Fixed version (ground truth):
@Override public boolean onCommand(CommandCaller caller,String[] args){
  final PlotPlayer player=caller instanceof PlotPlayerCaller ? (PlotPlayer)caller.getSuperCaller() : null;
  final List<String> allowed_params=Arrays.asList("String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str");
  if (args.length > 0) {
    final String arg=args[0].toLowerCase();
switch (arg) {
case "String_Node_Str":
{
        if (player == null) {
          MainUtil.sendMessage(player,C.IS_CONSOLE);
          return false;
        }
        Plot plot=MainUtil.getPlot(player.getLocation());
        if (plot == null) {
          MainUtil.sendMessage(player,C.NOT_IN_PLOT);
          return false;
        }
        PlotAnalysis analysis=plot.getComplexity();
        if (analysis != null) {
          int complexity=analysis.getComplexity();
          MainUtil.sendMessage(player,"String_Node_Str" + analysis.changes);
          MainUtil.sendMessage(player,"String_Node_Str" + complexity);
          return true;
        }
        MainUtil.sendMessage(player,"String_Node_Str");
        HybridUtils.manager.analyzePlot(plot,new RunnableVal<PlotAnalysis>(){
          @Override public void run(){
            MainUtil.sendMessage(player,"String_Node_Str");
          }
        }
);
        return true;
      }
case "String_Node_Str":
{
      if (args.length != 2) {
        MainUtil.sendMessage(player,C.COMMAND_SYNTAX,"String_Node_Str");
        MainUtil.sendMessage(player,"String_Node_Str");
        return false;
      }
      double threshold;
      try {
        threshold=Integer.parseInt(args[1]) / 100d;
      }
 catch (      NumberFormatException e) {
        MainUtil.sendMessage(player,"String_Node_Str" + args[1]);
        MainUtil.sendMessage(player,"String_Node_Str");
        return false;
      }
      PlotAnalysis.calcOptimalModifiers(new Runnable(){
        @Override public void run(){
          PS.log("String_Node_Str");
        }
      }
,threshold);
      return true;
    }
case "String_Node_Str":
{
    if (ExpireManager.task != -1) {
      Bukkit.getScheduler().cancelTask(ExpireManager.task);
    }
 else {
      return MainUtil.sendMessage(player,"String_Node_Str");
    }
    ExpireManager.task=-1;
    return MainUtil.sendMessage(player,"String_Node_Str");
  }
case "String_Node_Str":
{
  if (args.length != 2) {
    MainUtil.sendMessage(player,C.COMMAND_SYNTAX,"String_Node_Str");
    return false;
  }
  String flag=args[1];
  for (  Plot plot : PS.get().getPlots()) {
    if (FlagManager.getPlotFlag(plot,flag) != null) {
      FlagManager.removePlotFlag(plot,flag);
    }
  }
  return MainUtil.sendMessage(player,"String_Node_Str" + flag);
}
case "String_Node_Str":
{
if (args.length != 2) {
  PS.log("String_Node_Str");
  return false;
}
boolean result;
if (!PS.get().isPlotWorld(args[1])) {
  MainUtil.sendMessage(player,C.NOT_VALID_PLOT_WORLD,args[1]);
  return false;
}
if (BukkitHybridUtils.regions != null) {
  result=((BukkitHybridUtils)(HybridUtils.manager)).scheduleRoadUpdate(args[1],BukkitHybridUtils.regions,0);
}
 else {
  result=HybridUtils.manager.scheduleRoadUpdate(args[1],0);
}
if (!result) {
  PS.log("String_Node_Str");
  return false;
}
return true;
}
case "String_Node_Str":
{
if (((BukkitHybridUtils)(HybridUtils.manager)).task == 0) {
PS.log("String_Node_Str");
return false;
}
((BukkitHybridUtils)(HybridUtils.manager)).task=0;
Bukkit.getScheduler().cancelTask(((BukkitHybridUtils)(HybridUtils.manager)).task);
PS.log("String_Node_Str");
while (BukkitHybridUtils.chunks.size() > 0) {
ChunkLoc chunk=BukkitHybridUtils.chunks.get(0);
BukkitHybridUtils.chunks.remove(0);
HybridUtils.manager.regenerateRoad(BukkitHybridUtils.world,chunk,0);
ChunkManager.manager.unloadChunk(BukkitHybridUtils.world,chunk);
}
PS.log("String_Node_Str");
return true;
}
case "String_Node_Str":
{
if (ExpireManager.task == -1) {
ExpireManager.runTask();
}
 else {
return MainUtil.sendMessage(player,"String_Node_Str");
}
return MainUtil.sendMessage(player,"String_Node_Str");
}
case "String_Node_Str":
{
if (args.length > 1) {
final String world=args[1];
if (!BlockManager.manager.isWorld(world)) {
return MainUtil.sendMessage(player,"String_Node_Str" + args[1]);
}
MainUtil.sendMessage(player,"String_Node_Str");
ExpireManager.updateExpired(args[1]);
return true;
}
return MainUtil.sendMessage(player,"String_Node_Str");
}
case "String_Node_Str":
{
if (args.length > 1) {
final String world=args[1];
if (!BlockManager.manager.isWorld(world)) {
return MainUtil.sendMessage(player,"String_Node_Str" + args[1]);
}
if (!ExpireManager.expiredPlots.containsKey(args[1])) {
return MainUtil.sendMessage(player,"String_Node_Str" + args[1]);
}
MainUtil.sendMessage(player,"String_Node_Str" + ExpireManager.expiredPlots.get(args[1]).size() + "String_Node_Str");
for (final Plot plot : ExpireManager.expiredPlots.get(args[1])) {
MainUtil.sendMessage(player,"String_Node_Str" + plot.world + "String_Node_Str"+ plot.id.x+ "String_Node_Str"+ plot.id.y+ "String_Node_Str"+ UUIDHandler.getName(plot.owner)+ "String_Node_Str"+ ExpireManager.dates.get(plot.owner));
}
return true;
}
return MainUtil.sendMessage(player,"String_Node_Str");
}
case "String_Node_Str":
{
if (args.length != 2) {
return MainUtil.sendMessage(player,"String_Node_Str");
}
final UUID uuid=UUIDHandler.getUUID(args[1],null);
if (uuid == null) {
return MainUtil.sendMessage(player,"String_Node_Str" + args[1]);
}
final OfflinePlotPlayer op=UUIDHandler.getUUIDWrapper().getOfflinePlayer(uuid);
if ((op == null) || (op.getLastPlayed() == 0)) {
return MainUtil.sendMessage(player,"String_Node_Str" + args[1]);
}
final Timestamp stamp=new Timestamp(op.getLastPlayed());
final Date date=new Date(stamp.getTime());
MainUtil.sendMessage(player,"String_Node_Str" + args[1]);
MainUtil.sendMessage(player,"String_Node_Str" + uuid);
MainUtil.sendMessage(player,"String_Node_Str" + date.toGMTString());
MainUtil.sendMessage(player,"String_Node_Str" + date.toGMTString());
MainUtil.sendMessage(player,"String_Node_Str" + date.toLocaleString());
return true;
}
case "String_Node_Str":
{
if (args.length != 2) {
MainUtil.sendMessage(player,"String_Node_Str");
MainUtil.sendMessage(player,"String_Node_Str");
return MainUtil.sendMessage(player,"String_Node_Str");
}
final String world=args[1];
if (!BlockManager.manager.isWorld(world) || !PS.get().isPlotWorld(args[1])) {
return MainUtil.sendMessage(player,"String_Node_Str" + args[1]);
}
final ArrayList<ChunkLoc> empty=new ArrayList<>();
final boolean result=Trim.getTrimRegions(empty,world,new Runnable(){
@Override public void run(){
Trim.sendMessage("String_Node_Str");
Trim.sendMessage("String_Node_Str" + empty.size());
Trim.sendMessage("String_Node_Str" + (empty.size() * 1024) + "String_Node_Str");
Trim.sendMessage("String_Node_Str");
final File file=new File(PS.get().IMP.getDirectory() + File.separator + "String_Node_Str");
PrintWriter writer;
try {
writer=new PrintWriter(file);
for (final ChunkLoc loc : empty) {
writer.println(world + "String_Node_Str" + loc.x+ "String_Node_Str"+ loc.z+ "String_Node_Str");
}
writer.close();
Trim.sendMessage("String_Node_Str");
}
 catch (final FileNotFoundException e) {
e.printStackTrace();
Trim.sendMessage("String_Node_Str");
}
Trim.sendMessage("String_Node_Str");
Trim.sendMessage("String_Node_Str");
Trim.sendMessage("String_Node_Str");
Trim.sendMessage("String_Node_Str");
}
}
);
if (!result) {
MainUtil.sendMessage(player,"String_Node_Str");
}
return result;
}
}
}
MainUtil.sendMessage(player,"String_Node_Str" + StringUtils.join(allowed_params,"String_Node_Str") + "String_Node_Str");
return true;
}