Program: 96561
Project: 96561
Buggy source:
private boolean changeSetting(String command,String value,String world,Player p){
  String worldString=world;
  world=MULTI_WORLD_KEY + "String_Node_Str" + world+ "String_Node_Str";
  if (command.matches("String_Node_Str")) {
    world="String_Node_Str";
  }
  if (command.toLowerCase().matches("String_Node_Str")) {
    try {
      double newprice=Double.parseDouble(value);
      configWP.setProperty(ADOPT_KEY + "String_Node_Str" + world+ PRICE_KEY,newprice);
      configWP.save();
      checkLimitProperty(worldString);
      checkTypeProperty(worldString);
      checkAgroProperty(worldString);
      if (world.equalsIgnoreCase("String_Node_Str")) {
        adoptPrice=newprice;
        p.sendMessage(chatPrefix + "String_Node_Str");
      }
 else {
        adoptPriceWorlds.put(worldString,newprice);
        p.sendMessage(chatPrefix + "String_Node_Str" + worldString+ "String_Node_Str");
      }
      return true;
    }
 catch (    NumberFormatException e) {
      if (adoptPriceWorlds.containsKey(value)) {
        sendWolfPrice(p,value);
        return true;
      }
 else {
        p.sendMessage(chatPrefixError + "String_Node_Str" + value+ "String_Node_Str");
        return false;
      }
    }
  }
 else   if (command.toLowerCase().matches("String_Node_Str")) {
    int type=WPBlockListener.getRightSide(value);
    if (value.equalsIgnoreCase("String_Node_Str")) {
      type=DEFAULT_ADOPT_TYPE;
    }
 else     if (type == NO_ITEM_FOUND) {
      p.sendMessage(chatPrefixError + "String_Node_Str" + value);
      return false;
    }
 else     if (type == MULTIPLE_ITEMS_FOUND) {
      p.sendMessage(chatPrefixError + "String_Node_Str" + value);
      return false;
    }
    configWP.setProperty(ADOPT_KEY + "String_Node_Str" + world+ TYPE_KEY,type);
    configWP.save();
    checkLimitProperty(worldString);
    checkPriceProperty(worldString);
    checkAgroProperty(worldString);
    if (world.equalsIgnoreCase("String_Node_Str")) {
      adoptType=type;
      p.sendMessage(chatPrefix + "String_Node_Str");
    }
 else {
      adoptTypeWorlds.put(worldString,type);
      p.sendMessage(chatPrefix + "String_Node_Str" + worldString+ "String_Node_Str");
    }
    return true;
  }
 else   if (command.toLowerCase().matches("String_Node_Str")) {
    int limit=DEFAULT_ADOPT_LIMIT;
    try {
      limit=Integer.parseInt(value);
      if (limit < -1) {
        limit=-1;
      }
      configWP.setProperty(ADOPT_KEY + "String_Node_Str" + world+ LIMIT_KEY,limit);
      configWP.save();
      checkPriceProperty(worldString);
      checkTypeProperty(worldString);
      checkAgroProperty(worldString);
      if (world.equalsIgnoreCase("String_Node_Str")) {
        adoptLimit=limit;
        p.sendMessage(chatPrefix + "String_Node_Str");
      }
 else {
        adoptLimitWorlds.put(worldString,limit);
        p.sendMessage(chatPrefix + "String_Node_Str" + worldString+ "String_Node_Str");
      }
      return true;
    }
 catch (    NumberFormatException e) {
      if (adoptLimitWorlds.containsKey(value)) {
        sendWolfLimit(p,value);
        return true;
      }
 else {
        p.sendMessage(chatPrefixError + "String_Node_Str" + value+ "String_Node_Str");
        return false;
      }
    }
  }
 else   if (command.toLowerCase().matches("String_Node_Str")) {
    String agro=DEFAULT_ADOPT_AGRO;
    if (agroValueCheck(value)) {
      checkPriceProperty(worldString);
      checkTypeProperty(worldString);
      checkLimitProperty(worldString);
      if (world.equalsIgnoreCase("String_Node_Str")) {
        adoptAgro=agro;
        p.sendMessage(chatPrefix + "String_Node_Str");
      }
 else {
        adoptAgroWorlds.put(worldString,agro);
        p.sendMessage(chatPrefix + "String_Node_Str" + worldString+ "String_Node_Str");
      }
      configWP.setProperty(ADOPT_KEY + "String_Node_Str" + world+ AGRO_KEY,agro);
      configWP.save();
      return true;
    }
 else {
      p.sendMessage(chatPrefixError + "String_Node_Str" + value+ "String_Node_Str");
      return false;
    }
  }
  return false;
}

Fixed version (ground truth):
private boolean changeSetting(String command,String value,String world,Player p){
  String worldString=world;
  world=MULTI_WORLD_KEY + "String_Node_Str" + world+ "String_Node_Str";
  if (command.matches("String_Node_Str")) {
    world="String_Node_Str";
  }
  if (command.toLowerCase().matches("String_Node_Str")) {
    try {
      double newprice=Double.parseDouble(value);
      configWP.setProperty(ADOPT_KEY + "String_Node_Str" + world+ PRICE_KEY,newprice);
      configWP.save();
      checkLimitProperty(worldString);
      checkTypeProperty(worldString);
      checkAggroProperty(worldString);
      if (world.equalsIgnoreCase("String_Node_Str")) {
        adoptPrice=newprice;
        p.sendMessage(chatPrefix + "String_Node_Str");
      }
 else {
        adoptPriceWorlds.put(worldString,newprice);
        p.sendMessage(chatPrefix + "String_Node_Str" + worldString+ "String_Node_Str");
      }
      return true;
    }
 catch (    NumberFormatException e) {
      if (adoptPriceWorlds.containsKey(value)) {
        sendWolfPrice(p,value);
        return true;
      }
 else {
        p.sendMessage(chatPrefixError + "String_Node_Str" + value+ "String_Node_Str");
        return false;
      }
    }
  }
 else   if (command.toLowerCase().matches("String_Node_Str")) {
    int type=WPBlockListener.getRightSide(value);
    if (value.equalsIgnoreCase("String_Node_Str")) {
      type=DEFAULT_ADOPT_TYPE;
    }
 else     if (type == NO_ITEM_FOUND) {
      p.sendMessage(chatPrefixError + "String_Node_Str" + value);
      return false;
    }
 else     if (type == MULTIPLE_ITEMS_FOUND) {
      p.sendMessage(chatPrefixError + "String_Node_Str" + value);
      return false;
    }
    configWP.setProperty(ADOPT_KEY + "String_Node_Str" + world+ TYPE_KEY,type);
    configWP.save();
    checkLimitProperty(worldString);
    checkPriceProperty(worldString);
    checkAggroProperty(worldString);
    if (world.equalsIgnoreCase("String_Node_Str")) {
      adoptType=type;
      p.sendMessage(chatPrefix + "String_Node_Str");
    }
 else {
      adoptTypeWorlds.put(worldString,type);
      p.sendMessage(chatPrefix + "String_Node_Str" + worldString+ "String_Node_Str");
    }
    return true;
  }
 else   if (command.toLowerCase().matches("String_Node_Str")) {
    int limit=DEFAULT_ADOPT_LIMIT;
    try {
      limit=Integer.parseInt(value);
      if (limit < -1) {
        limit=-1;
      }
      configWP.setProperty(ADOPT_KEY + "String_Node_Str" + world+ LIMIT_KEY,limit);
      configWP.save();
      checkPriceProperty(worldString);
      checkTypeProperty(worldString);
      checkAggroProperty(worldString);
      if (world.equalsIgnoreCase("String_Node_Str")) {
        adoptLimit=limit;
        p.sendMessage(chatPrefix + "String_Node_Str");
      }
 else {
        adoptLimitWorlds.put(worldString,limit);
        p.sendMessage(chatPrefix + "String_Node_Str" + worldString+ "String_Node_Str");
      }
      return true;
    }
 catch (    NumberFormatException e) {
      if (adoptLimitWorlds.containsKey(value)) {
        sendWolfLimit(p,value);
        return true;
      }
 else {
        p.sendMessage(chatPrefixError + "String_Node_Str" + value+ "String_Node_Str");
        return false;
      }
    }
  }
 else   if (command.toLowerCase().matches("String_Node_Str")) {
    if (aggroValueCheck(value)) {
      checkPriceProperty(worldString);
      checkTypeProperty(worldString);
      checkLimitProperty(worldString);
      if (world.equalsIgnoreCase("String_Node_Str")) {
        adoptAggro=value;
        p.sendMessage(chatPrefix + "String_Node_Str");
      }
 else {
        adoptAggroWorlds.put(worldString,value);
        p.sendMessage(chatPrefix + "String_Node_Str" + worldString+ "String_Node_Str");
      }
      configWP.setProperty(ADOPT_KEY + "String_Node_Str" + world+ AGGRO_KEY,value);
      configWP.save();
      return true;
    }
 else {
      p.sendMessage(chatPrefixError + "String_Node_Str" + ChatColor.AQUA+ "String_Node_Str"+ ChatColor.WHITE+ "String_Node_Str"+ ChatColor.GREEN+ "String_Node_Str"+ ChatColor.WHITE+ "String_Node_Str"+ ChatColor.RED+ "String_Node_Str");
      return false;
    }
  }
  return false;
}