Program: 34065
Project: 34065
Buggy source:
/** 
 * Loads the various settings from the config.yml file into the plugin
 */
public void loadPluginConfig(){
  try {
    getConfig();
  }
 catch (  final Exception e) {
    e.printStackTrace();
  }
  Challenges.getChallengeConfig();
  availableLocales.put("String_Node_Str",new Locale(this,"String_Node_Str"));
  availableLocales.put("String_Node_Str",new Locale(this,"String_Node_Str"));
  availableLocales.put("String_Node_Str",new Locale(this,"String_Node_Str"));
  availableLocales.put("String_Node_Str",new Locale(this,"String_Node_Str"));
  availableLocales.put("String_Node_Str",new Locale(this,"String_Node_Str"));
  availableLocales.put("String_Node_Str",new Locale(this,"String_Node_Str"));
  availableLocales.put("String_Node_Str",new Locale(this,"String_Node_Str"));
  availableLocales.put("String_Node_Str",new Locale(this,"String_Node_Str"));
  availableLocales.put("String_Node_Str",new Locale(this,"String_Node_Str"));
  availableLocales.put("String_Node_Str",new Locale(this,"String_Node_Str"));
  availableLocales.put("String_Node_Str",new Locale(this,"String_Node_Str"));
  availableLocales.put("String_Node_Str",new Locale(this,"String_Node_Str"));
  Settings.debug=getConfig().getInt("String_Node_Str",0);
  if (getConfig().contains("String_Node_Str")) {
    for (    String key : getConfig().getConfigurationSection("String_Node_Str").getKeys(true)) {
      String filename=getConfig().getString("String_Node_Str" + key);
      File schematicFile=new File(plugin.getDataFolder(),filename);
      if (schematicFile.exists()) {
        Settings.schematics.put(key,filename);
        getLogger().info("String_Node_Str" + filename + "String_Node_Str"+ key);
      }
    }
  }
  Settings.useSchematicPanel=getConfig().getBoolean("String_Node_Str",true);
  Settings.setTeamName=getConfig().getBoolean("String_Node_Str",false);
  Settings.immediateTeleport=getConfig().getBoolean("String_Node_Str",false);
  Settings.makeIslandIfNone=getConfig().getBoolean("String_Node_Str",false);
  Settings.usePhysics=getConfig().getBoolean("String_Node_Str",false);
  Settings.loginLevel=getConfig().getBoolean("String_Node_Str",false);
  Settings.useEconomy=getConfig().getBoolean("String_Node_Str",true);
  Settings.updateCheck=getConfig().getBoolean("String_Node_Str",true);
  Settings.resetCommands=getConfig().getStringList("String_Node_Str");
  Settings.leaveCommands=getConfig().getStringList("String_Node_Str");
  Settings.useControlPanel=getConfig().getBoolean("String_Node_Str",false);
  Settings.allowTeleportWhenFalling=getConfig().getBoolean("String_Node_Str",true);
  Settings.fallingCommandBlockList=getConfig().getStringList("String_Node_Str");
  Settings.maxTeamSize=getConfig().getInt("String_Node_Str",4);
  Settings.maxTeamSizeVIP=getConfig().getInt("String_Node_Str",8);
  Settings.maxTeamSizeVIP2=getConfig().getInt("String_Node_Str",12);
  Settings.maxHomes=getConfig().getInt("String_Node_Str",1);
  if (Settings.maxHomes < 1) {
    Settings.maxHomes=1;
  }
  Settings.worldName=getConfig().getString("String_Node_Str");
  Settings.createNether=getConfig().getBoolean("String_Node_Str",true);
  if (!Settings.createNether) {
    getLogger().info("String_Node_Str");
  }
  String companion=getConfig().getString("String_Node_Str","String_Node_Str").toUpperCase();
  if (companion == "String_Node_Str") {
    Settings.islandCompanion=null;
  }
 else {
    try {
      Settings.islandCompanion=EntityType.valueOf(companion);
switch (Settings.islandCompanion) {
case BAT:
case CHICKEN:
case COW:
case HORSE:
case IRON_GOLEM:
case MUSHROOM_COW:
case OCELOT:
case PIG:
case RABBIT:
case SHEEP:
case SNOWMAN:
case VILLAGER:
case WOLF:
        break;
default :
      getLogger().warning("String_Node_Str");
    Settings.islandCompanion=EntityType.COW;
  break;
}
}
 catch (Exception e) {
getLogger().warning("String_Node_Str");
Settings.islandCompanion=EntityType.COW;
}
}
List<String> companionNames=getConfig().getStringList("String_Node_Str");
Settings.companionNames=new ArrayList<String>();
for (String name : companionNames) {
Settings.companionNames.add(ChatColor.translateAlternateColorCodes('&',name));
}
Settings.islandDistance=getConfig().getInt("String_Node_Str",200);
if (Settings.islandDistance < 50) {
Settings.islandDistance=50;
getLogger().info("String_Node_Str");
}
Settings.islandXOffset=getConfig().getInt("String_Node_Str",0);
if (Settings.islandXOffset < 0) {
Settings.islandXOffset=0;
getLogger().info("String_Node_Str");
}
 else if (Settings.islandXOffset > Settings.islandDistance) {
Settings.islandXOffset=Settings.islandDistance;
getLogger().info("String_Node_Str" + Settings.islandDistance);
}
Settings.islandZOffset=getConfig().getInt("String_Node_Str",0);
if (Settings.islandZOffset < 0) {
Settings.islandZOffset=0;
getLogger().info("String_Node_Str");
}
 else if (Settings.islandZOffset > Settings.islandDistance) {
Settings.islandZOffset=Settings.islandDistance;
getLogger().info("String_Node_Str" + Settings.islandDistance);
}
long x=getConfig().getLong("String_Node_Str",0);
long z=getConfig().getLong("String_Node_Str",0);
Settings.islandStartX=Math.round((double)x / Settings.islandDistance) * Settings.islandDistance + Settings.islandXOffset;
Settings.islandStartZ=Math.round((double)z / Settings.islandDistance) * Settings.islandDistance + Settings.islandZOffset;
if (Settings.GAMETYPE.equals(Settings.GameType.ACIDISLAND)) {
Settings.acidDamage=getConfig().getDouble("String_Node_Str",5D);
if (Settings.acidDamage > 100D) {
Settings.acidDamage=100D;
}
 else if (Settings.acidDamage < 0D) {
Settings.acidDamage=0D;
}
Settings.mobAcidDamage=getConfig().getDouble("String_Node_Str",10D);
if (Settings.mobAcidDamage > 100D) {
Settings.mobAcidDamage=100D;
}
 else if (Settings.mobAcidDamage < 0D) {
Settings.mobAcidDamage=0D;
}
Settings.rainDamage=getConfig().getDouble("String_Node_Str",0.5D);
if (Settings.rainDamage > 100D) {
Settings.rainDamage=100D;
}
 else if (Settings.rainDamage < 0D) {
Settings.rainDamage=0D;
}
Settings.sea_level=getConfig().getInt("String_Node_Str",50);
if (Settings.sea_level < 0) {
Settings.sea_level=0;
}
Settings.island_level=getConfig().getInt("String_Node_Str",50) - 5;
if (Settings.island_level < 0) {
Settings.island_level=0;
}
}
 else {
Settings.acidDamage=getConfig().getDouble("String_Node_Str",0D);
if (Settings.acidDamage > 100D) {
Settings.acidDamage=100D;
}
 else if (Settings.acidDamage < 0D) {
Settings.acidDamage=0D;
}
Settings.mobAcidDamage=getConfig().getDouble("String_Node_Str",0D);
if (Settings.mobAcidDamage > 100D) {
Settings.mobAcidDamage=100D;
}
 else if (Settings.mobAcidDamage < 0D) {
Settings.mobAcidDamage=0D;
}
Settings.rainDamage=getConfig().getDouble("String_Node_Str",0D);
if (Settings.rainDamage > 100D) {
Settings.rainDamage=100D;
}
 else if (Settings.rainDamage < 0D) {
Settings.rainDamage=0D;
}
Settings.sea_level=getConfig().getInt("String_Node_Str",0);
if (Settings.sea_level < 0) {
Settings.sea_level=0;
}
Settings.island_level=getConfig().getInt("String_Node_Str",120) - 5;
if (Settings.island_level < 0) {
Settings.island_level=0;
}
}
Settings.animalAcidDamage=getConfig().getDouble("String_Node_Str",0D);
if (Settings.animalAcidDamage > 100D) {
Settings.animalAcidDamage=100D;
}
 else if (Settings.animalAcidDamage < 0D) {
Settings.animalAcidDamage=0D;
}
Settings.damageChickens=getConfig().getBoolean("String_Node_Str",false);
List<String> acidDamageType=getConfig().getStringList("String_Node_Str");
Settings.acidDamageType.clear();
if (acidDamageType != null) {
for (String effect : acidDamageType) {
PotionEffectType newPotionType=PotionEffectType.getByName(effect);
if (newPotionType != null) {
if (newPotionType.equals(PotionEffectType.BLINDNESS) || newPotionType.equals(PotionEffectType.CONFUSION) || newPotionType.equals(PotionEffectType.HUNGER)|| newPotionType.equals(PotionEffectType.POISON)|| newPotionType.equals(PotionEffectType.SLOW)|| newPotionType.equals(PotionEffectType.SLOW_DIGGING)|| newPotionType.equals(PotionEffectType.WEAKNESS)) {
  Settings.acidDamageType.add(newPotionType);
}
}
 else {
getLogger().warning("String_Node_Str" + effect + "String_Node_Str");
getLogger().warning("String_Node_Str");
getLogger().warning("String_Node_Str");
}
}
}
Settings.animalSpawnLimit=getConfig().getInt("String_Node_Str",15);
if (Settings.animalSpawnLimit > 100) {
Settings.animalSpawnLimit=100;
}
 else if (Settings.animalSpawnLimit < -1) {
Settings.animalSpawnLimit=-1;
}
Settings.monsterSpawnLimit=getConfig().getInt("String_Node_Str",70);
if (Settings.monsterSpawnLimit > 100) {
Settings.monsterSpawnLimit=100;
}
 else if (Settings.monsterSpawnLimit < -1) {
Settings.monsterSpawnLimit=-1;
}
Settings.waterAnimalSpawnLimit=getConfig().getInt("String_Node_Str",15);
if (Settings.waterAnimalSpawnLimit > 100) {
Settings.waterAnimalSpawnLimit=100;
}
 else if (Settings.waterAnimalSpawnLimit < -1) {
Settings.waterAnimalSpawnLimit=-1;
}
Settings.abandonedIslandLevel=getConfig().getInt("String_Node_Str",10);
if (Settings.abandonedIslandLevel < 0) {
Settings.abandonedIslandLevel=0;
}
Settings.island_protectionRange=getConfig().getInt("String_Node_Str",100);
if (!getConfig().getBoolean("String_Node_Str",false)) {
if (Settings.island_protectionRange > (Settings.islandDistance - 16)) {
Settings.island_protectionRange=Settings.islandDistance - 16;
getLogger().warning("String_Node_Str" + (Settings.islandDistance - 16) + "String_Node_Str"+ Settings.island_protectionRange);
}
}
if (Settings.island_protectionRange < 50) {
Settings.island_protectionRange=50;
}
Settings.resetChallenges=getConfig().getBoolean("String_Node_Str",true);
Settings.resetMoney=getConfig().getBoolean("String_Node_Str",true);
Settings.clearInventory=getConfig().getBoolean("String_Node_Str",true);
Settings.resetEnderChest=getConfig().getBoolean("String_Node_Str",false);
Settings.startingMoney=getConfig().getDouble("String_Node_Str",0D);
Settings.newNether=getConfig().getBoolean("String_Node_Str",false);
Settings.netherSpawnRadius=getConfig().getInt("String_Node_Str",25);
if (Settings.netherSpawnRadius < 0) {
Settings.netherSpawnRadius=0;
}
 else if (Settings.netherSpawnRadius > 100) {
Settings.netherSpawnRadius=100;
}
Settings.resetWait=getConfig().getInt("String_Node_Str",300);
if (Settings.resetWait < 0) {
Settings.resetWait=0;
}
Settings.resetLimit=getConfig().getInt("String_Node_Str",0);
if (Settings.resetWait < 0) {
Settings.resetWait=-1;
}
Settings.inviteWait=getConfig().getInt("String_Node_Str",60);
if (Settings.inviteWait < 0) {
Settings.inviteWait=0;
}
Settings.levelWait=getConfig().getInt("String_Node_Str",60);
if (Settings.levelWait < 0) {
Settings.levelWait=0;
}
Settings.resetConfirmWait=getConfig().getInt("String_Node_Str",10);
if (Settings.resetConfirmWait < 0) {
Settings.resetConfirmWait=0;
}
Settings.damageOps=getConfig().getBoolean("String_Node_Str",false);
Settings.logInRemoveMobs=getConfig().getBoolean("String_Node_Str",true);
Settings.islandRemoveMobs=getConfig().getBoolean("String_Node_Str",false);
final String[] chestItemString=getConfig().getString("String_Node_Str").split("String_Node_Str");
final ItemStack[] tempChest=new ItemStack[chestItemString.length];
for (int i=0; i < tempChest.length; i++) {
try {
String[] amountdata=chestItemString[i].split("String_Node_Str");
if (amountdata[0].equals("String_Node_Str")) {
if (amountdata.length == 2) {
  final String chestPotionEffect=getConfig().getString("String_Node_Str","String_Node_Str");
  if (!chestPotionEffect.isEmpty()) {
    Potion chestPotion=new Potion(PotionType.valueOf(chestPotionEffect));
    tempChest[i]=chestPotion.toItemStack(Integer.parseInt(amountdata[1]));
  }
}
 else if (amountdata.length == 3) {
  Potion chestPotion=new Potion(PotionType.valueOf(amountdata[1]));
  tempChest[i]=chestPotion.toItemStack(Integer.parseInt(amountdata[2]));
}
 else if (amountdata.length == 4) {
  if (amountdata[2].equals("String_Node_Str")) {
    Potion chestPotion=new Potion(PotionType.valueOf(amountdata[1])).extend();
    tempChest[i]=chestPotion.toItemStack(Integer.parseInt(amountdata[3]));
  }
 else   if (amountdata[2].equals("String_Node_Str")) {
    Potion chestPotion=new Potion(PotionType.valueOf(amountdata[1])).splash();
    tempChest[i]=chestPotion.toItemStack(Integer.parseInt(amountdata[3]));
  }
 else   if (amountdata[2].equals("String_Node_Str")) {
    Potion chestPotion=new Potion(PotionType.valueOf(amountdata[1])).extend().splash();
    tempChest[i]=chestPotion.toItemStack(Integer.parseInt(amountdata[3]));
  }
}
}
 else {
if (amountdata.length == 2) {
  tempChest[i]=new ItemStack(Material.getMaterial(amountdata[0]),Integer.parseInt(amountdata[1]));
}
 else if (amountdata.length == 3) {
  tempChest[i]=new ItemStack(Material.getMaterial(amountdata[0]),Integer.parseInt(amountdata[2]),Short.parseShort(amountdata[1]));
}
}
}
 catch (java.lang.IllegalArgumentException ex) {
getLogger().severe("String_Node_Str" + chestItemString[i]);
getLogger().severe("String_Node_Str" + ex.getMessage());
getLogger().info("String_Node_Str");
for (PotionType c : PotionType.values()) getLogger().info(c.name());
}
catch (Exception e) {
getLogger().severe("String_Node_Str" + chestItemString[i]);
getLogger().info("String_Node_Str");
for (Material c : Material.values()) getLogger().info(c.name());
}
}
Settings.chestItems=tempChest;
Settings.allowPvP=getConfig().getBoolean("String_Node_Str",false);
Settings.allowNetherPvP=getConfig().getBoolean("String_Node_Str",false);
Settings.allowBreakBlocks=getConfig().getBoolean("String_Node_Str",false);
Settings.allowPlaceBlocks=getConfig().getBoolean("String_Node_Str",false);
Settings.allowBedUse=getConfig().getBoolean("String_Node_Str",false);
Settings.allowBucketUse=getConfig().getBoolean("String_Node_Str",false);
Settings.allowShearing=getConfig().getBoolean("String_Node_Str",false);
Settings.allowEnderPearls=getConfig().getBoolean("String_Node_Str",false);
Settings.allowDoorUse=getConfig().getBoolean("String_Node_Str",false);
Settings.allowLeverButtonUse=getConfig().getBoolean("String_Node_Str",false);
Settings.allowCropTrample=getConfig().getBoolean("String_Node_Str",false);
Settings.allowChestAccess=getConfig().getBoolean("String_Node_Str",false);
Settings.allowFurnaceUse=getConfig().getBoolean("String_Node_Str",false);
Settings.allowRedStone=getConfig().getBoolean("String_Node_Str",false);
Settings.allowMusic=getConfig().getBoolean("String_Node_Str",false);
Settings.allowCrafting=getConfig().getBoolean("String_Node_Str",false);
Settings.allowBrewing=getConfig().getBoolean("String_Node_Str",false);
Settings.allowGateUse=getConfig().getBoolean("String_Node_Str",false);
Settings.allowHurtMobs=getConfig().getBoolean("String_Node_Str",true);
Settings.endermanDeathDrop=getConfig().getBoolean("String_Node_Str",true);
Settings.allowEndermanGriefing=getConfig().getBoolean("String_Node_Str",true);
Settings.allowCreeperDamage=getConfig().getBoolean("String_Node_Str",true);
Settings.allowTNTDamage=getConfig().getBoolean("String_Node_Str",false);
Settings.allowMonsterEggs=getConfig().getBoolean("String_Node_Str",false);
Settings.allowBreeding=getConfig().getBoolean("String_Node_Str",false);
Settings.allowFire=getConfig().getBoolean("String_Node_Str",false);
Settings.allowChestDamage=getConfig().getBoolean("String_Node_Str",false);
Settings.allowLeashUse=getConfig().getBoolean("String_Node_Str",false);
Settings.allowHurtMonsters=getConfig().getBoolean("String_Node_Str",true);
Settings.allowEnchanting=getConfig().getBoolean("String_Node_Str",true);
Settings.allowAnvilUse=getConfig().getBoolean("String_Node_Str",true);
Settings.allowVisitorKeepInvOnDeath=getConfig().getBoolean("String_Node_Str",false);
Settings.allowVisitorItemDrop=getConfig().getBoolean("String_Node_Str",true);
Settings.allowVisitorItemPickup=getConfig().getBoolean("String_Node_Str",true);
Settings.allowArmorStandUse=getConfig().getBoolean("String_Node_Str",false);
Settings.allowBeaconAccess=getConfig().getBoolean("String_Node_Str",false);
Settings.allowPortalUse=getConfig().getBoolean("String_Node_Str",true);
Settings.allowSpawnDoorUse=getConfig().getBoolean("String_Node_Str",true);
Settings.allowSpawnLeverButtonUse=getConfig().getBoolean("String_Node_Str",true);
Settings.allowSpawnChestAccess=getConfig().getBoolean("String_Node_Str",true);
Settings.allowSpawnFurnaceUse=getConfig().getBoolean("String_Node_Str",true);
Settings.allowSpawnRedStone=getConfig().getBoolean("String_Node_Str",false);
Settings.allowSpawnMusic=getConfig().getBoolean("String_Node_Str",true);
Settings.allowSpawnCrafting=getConfig().getBoolean("String_Node_Str",true);
Settings.allowSpawnBrewing=getConfig().getBoolean("String_Node_Str",true);
Settings.allowSpawnGateUse=getConfig().getBoolean("String_Node_Str",true);
Settings.allowSpawnMobSpawn=getConfig().getBoolean("String_Node_Str",false);
Settings.allowSpawnAnimalSpawn=getConfig().getBoolean("String_Node_Str",true);
Settings.allowSpawnAnimalKilling=getConfig().getBoolean("String_Node_Str",false);
Settings.allowSpawnMobKilling=getConfig().getBoolean("String_Node_Str",true);
Settings.allowSpawnMonsterEggs=getConfig().getBoolean("String_Node_Str",false);
Settings.allowSpawnEggs=getConfig().getBoolean("String_Node_Str",false);
Settings.allowSpawnBreakBlocks=getConfig().getBoolean("String_Node_Str",false);
Settings.allowSpawnPlaceBlocks=getConfig().getBoolean("String_Node_Str",false);
Settings.allowSpawnNoAcidWater=getConfig().getBoolean("String_Node_Str",false);
Settings.allowSpawnEnchanting=getConfig().getBoolean("String_Node_Str",true);
Settings.allowSpawnAnvilUse=getConfig().getBoolean("String_Node_Str",true);
Settings.allowSpawnBeaconAccess=getConfig().getBoolean("String_Node_Str",false);
final Set<String> challengeList=Challenges.getChallengeConfig().getConfigurationSection("String_Node_Str").getKeys(false);
Settings.challengeList=challengeList;
Settings.challengeLevels=Arrays.asList(Challenges.getChallengeConfig().getString("String_Node_Str").split("String_Node_Str"));
Settings.waiverAmount=Challenges.getChallengeConfig().getInt("String_Node_Str",1);
if (Settings.waiverAmount < 0) {
Settings.waiverAmount=0;
}
Settings.broadcastMessages=getConfig().getBoolean("String_Node_Str",true);
YamlConfiguration blockValuesConfig=Util.loadYamlFile("String_Node_Str");
Settings.blockLimits=new HashMap<Material,Integer>();
if (blockValuesConfig.isSet("String_Node_Str")) {
for (String material : blockValuesConfig.getConfigurationSection("String_Node_Str").getKeys(false)) {
try {
Material mat=Material.valueOf(material);
Settings.blockLimits.put(mat,blockValuesConfig.getInt("String_Node_Str" + material,0));
if (debug) {
  getLogger().info("String_Node_Str" + mat.toString() + "String_Node_Str"+ Settings.blockLimits.get(mat));
}
}
 catch (Exception e) {
getLogger().warning("String_Node_Str" + material + "String_Node_Str");
}
}
}
Settings.blockValues=new HashMap<Material,Integer>();
if (blockValuesConfig.isSet("String_Node_Str")) {
for (String material : blockValuesConfig.getConfigurationSection("String_Node_Str").getKeys(false)) {
try {
Material mat=Material.valueOf(material);
Settings.blockValues.put(mat,blockValuesConfig.getInt("String_Node_Str" + material,0));
if (debug) {
  getLogger().info(mat.toString() + "String_Node_Str" + Settings.blockValues.get(mat));
}
}
 catch (Exception e) {
getLogger().warning("String_Node_Str" + material + "String_Node_Str");
}
}
}
 else {
getLogger().severe("String_Node_Str");
}
Settings.biomeCost=getConfig().getDouble("String_Node_Str",100D);
if (Settings.biomeCost < 0D) {
Settings.biomeCost=0D;
getLogger().warning("String_Node_Str");
}
String defaultBiome=getConfig().getString("String_Node_Str","String_Node_Str");
try {
Settings.defaultBiome=Biome.valueOf(defaultBiome);
}
 catch (Exception e) {
getLogger().severe("String_Node_Str" + defaultBiome + "String_Node_Str");
Settings.defaultBiome=Biome.PLAINS;
}
Settings.breedingLimit=getConfig().getInt("String_Node_Str",0);
Settings.removeCompleteOntimeChallenges=getConfig().getBoolean("String_Node_Str",false);
Settings.addCompletedGlow=getConfig().getBoolean("String_Node_Str",true);
}

Fixed version (ground truth):
/** 
 * Loads the various settings from the config.yml file into the plugin
 */
public void loadPluginConfig(){
  try {
    getConfig();
  }
 catch (  final Exception e) {
    e.printStackTrace();
  }
  Challenges.getChallengeConfig();
  availableLocales.put("String_Node_Str",new Locale(this,"String_Node_Str"));
  availableLocales.put("String_Node_Str",new Locale(this,"String_Node_Str"));
  availableLocales.put("String_Node_Str",new Locale(this,"String_Node_Str"));
  availableLocales.put("String_Node_Str",new Locale(this,"String_Node_Str"));
  availableLocales.put("String_Node_Str",new Locale(this,"String_Node_Str"));
  availableLocales.put("String_Node_Str",new Locale(this,"String_Node_Str"));
  availableLocales.put("String_Node_Str",new Locale(this,"String_Node_Str"));
  availableLocales.put("String_Node_Str",new Locale(this,"String_Node_Str"));
  availableLocales.put("String_Node_Str",new Locale(this,"String_Node_Str"));
  availableLocales.put("String_Node_Str",new Locale(this,"String_Node_Str"));
  availableLocales.put("String_Node_Str",new Locale(this,"String_Node_Str"));
  availableLocales.put("String_Node_Str",new Locale(this,"String_Node_Str"));
  Settings.debug=getConfig().getInt("String_Node_Str",0);
  if (getConfig().contains("String_Node_Str")) {
    for (    String key : getConfig().getConfigurationSection("String_Node_Str").getKeys(true)) {
      String filename=getConfig().getString("String_Node_Str" + key);
      File schematicFile=new File(plugin.getDataFolder(),filename);
      if (schematicFile.exists()) {
        Settings.schematics.put(key,filename);
        getLogger().info("String_Node_Str" + filename + "String_Node_Str"+ key);
      }
    }
  }
  Settings.useSchematicPanel=getConfig().getBoolean("String_Node_Str",true);
  Settings.setTeamName=getConfig().getBoolean("String_Node_Str",false);
  Settings.immediateTeleport=getConfig().getBoolean("String_Node_Str",false);
  Settings.makeIslandIfNone=getConfig().getBoolean("String_Node_Str",false);
  Settings.usePhysics=getConfig().getBoolean("String_Node_Str",false);
  Settings.loginLevel=getConfig().getBoolean("String_Node_Str",false);
  Settings.useEconomy=getConfig().getBoolean("String_Node_Str",true);
  Settings.updateCheck=getConfig().getBoolean("String_Node_Str",true);
  Settings.resetCommands=getConfig().getStringList("String_Node_Str");
  Settings.leaveCommands=getConfig().getStringList("String_Node_Str");
  Settings.useControlPanel=getConfig().getBoolean("String_Node_Str",false);
  Settings.allowTeleportWhenFalling=getConfig().getBoolean("String_Node_Str",true);
  Settings.fallingCommandBlockList=getConfig().getStringList("String_Node_Str");
  Settings.maxTeamSize=getConfig().getInt("String_Node_Str",4);
  Settings.maxTeamSizeVIP=getConfig().getInt("String_Node_Str",8);
  Settings.maxTeamSizeVIP2=getConfig().getInt("String_Node_Str",12);
  Settings.maxHomes=getConfig().getInt("String_Node_Str",1);
  if (Settings.maxHomes < 1) {
    Settings.maxHomes=1;
  }
  Settings.worldName=getConfig().getString("String_Node_Str");
  Settings.createNether=getConfig().getBoolean("String_Node_Str",true);
  if (!Settings.createNether) {
    getLogger().info("String_Node_Str");
  }
  String companion=getConfig().getString("String_Node_Str","String_Node_Str").toUpperCase();
  if (companion.equalsIgnoreCase("String_Node_Str")) {
    Settings.islandCompanion=null;
  }
 else {
    try {
      Settings.islandCompanion=EntityType.valueOf(companion);
switch (Settings.islandCompanion) {
case BAT:
case CHICKEN:
case COW:
case HORSE:
case IRON_GOLEM:
case MUSHROOM_COW:
case OCELOT:
case PIG:
case RABBIT:
case SHEEP:
case SNOWMAN:
case VILLAGER:
case WOLF:
        break;
default :
      getLogger().warning("String_Node_Str");
    Settings.islandCompanion=EntityType.COW;
  break;
}
}
 catch (Exception e) {
getLogger().warning("String_Node_Str");
Settings.islandCompanion=EntityType.COW;
}
}
List<String> companionNames=getConfig().getStringList("String_Node_Str");
Settings.companionNames=new ArrayList<String>();
for (String name : companionNames) {
Settings.companionNames.add(ChatColor.translateAlternateColorCodes('&',name));
}
Settings.islandDistance=getConfig().getInt("String_Node_Str",200);
if (Settings.islandDistance < 50) {
Settings.islandDistance=50;
getLogger().info("String_Node_Str");
}
Settings.islandXOffset=getConfig().getInt("String_Node_Str",0);
if (Settings.islandXOffset < 0) {
Settings.islandXOffset=0;
getLogger().info("String_Node_Str");
}
 else if (Settings.islandXOffset > Settings.islandDistance) {
Settings.islandXOffset=Settings.islandDistance;
getLogger().info("String_Node_Str" + Settings.islandDistance);
}
Settings.islandZOffset=getConfig().getInt("String_Node_Str",0);
if (Settings.islandZOffset < 0) {
Settings.islandZOffset=0;
getLogger().info("String_Node_Str");
}
 else if (Settings.islandZOffset > Settings.islandDistance) {
Settings.islandZOffset=Settings.islandDistance;
getLogger().info("String_Node_Str" + Settings.islandDistance);
}
long x=getConfig().getLong("String_Node_Str",0);
long z=getConfig().getLong("String_Node_Str",0);
Settings.islandStartX=Math.round((double)x / Settings.islandDistance) * Settings.islandDistance + Settings.islandXOffset;
Settings.islandStartZ=Math.round((double)z / Settings.islandDistance) * Settings.islandDistance + Settings.islandZOffset;
if (Settings.GAMETYPE.equals(Settings.GameType.ACIDISLAND)) {
Settings.acidDamage=getConfig().getDouble("String_Node_Str",5D);
if (Settings.acidDamage > 100D) {
Settings.acidDamage=100D;
}
 else if (Settings.acidDamage < 0D) {
Settings.acidDamage=0D;
}
Settings.mobAcidDamage=getConfig().getDouble("String_Node_Str",10D);
if (Settings.mobAcidDamage > 100D) {
Settings.mobAcidDamage=100D;
}
 else if (Settings.mobAcidDamage < 0D) {
Settings.mobAcidDamage=0D;
}
Settings.rainDamage=getConfig().getDouble("String_Node_Str",0.5D);
if (Settings.rainDamage > 100D) {
Settings.rainDamage=100D;
}
 else if (Settings.rainDamage < 0D) {
Settings.rainDamage=0D;
}
Settings.sea_level=getConfig().getInt("String_Node_Str",50);
if (Settings.sea_level < 0) {
Settings.sea_level=0;
}
Settings.island_level=getConfig().getInt("String_Node_Str",50) - 5;
if (Settings.island_level < 0) {
Settings.island_level=0;
}
}
 else {
Settings.acidDamage=getConfig().getDouble("String_Node_Str",0D);
if (Settings.acidDamage > 100D) {
Settings.acidDamage=100D;
}
 else if (Settings.acidDamage < 0D) {
Settings.acidDamage=0D;
}
Settings.mobAcidDamage=getConfig().getDouble("String_Node_Str",0D);
if (Settings.mobAcidDamage > 100D) {
Settings.mobAcidDamage=100D;
}
 else if (Settings.mobAcidDamage < 0D) {
Settings.mobAcidDamage=0D;
}
Settings.rainDamage=getConfig().getDouble("String_Node_Str",0D);
if (Settings.rainDamage > 100D) {
Settings.rainDamage=100D;
}
 else if (Settings.rainDamage < 0D) {
Settings.rainDamage=0D;
}
Settings.sea_level=getConfig().getInt("String_Node_Str",0);
if (Settings.sea_level < 0) {
Settings.sea_level=0;
}
Settings.island_level=getConfig().getInt("String_Node_Str",120) - 5;
if (Settings.island_level < 0) {
Settings.island_level=0;
}
}
Settings.animalAcidDamage=getConfig().getDouble("String_Node_Str",0D);
if (Settings.animalAcidDamage > 100D) {
Settings.animalAcidDamage=100D;
}
 else if (Settings.animalAcidDamage < 0D) {
Settings.animalAcidDamage=0D;
}
Settings.damageChickens=getConfig().getBoolean("String_Node_Str",false);
List<String> acidDamageType=getConfig().getStringList("String_Node_Str");
Settings.acidDamageType.clear();
if (acidDamageType != null) {
for (String effect : acidDamageType) {
PotionEffectType newPotionType=PotionEffectType.getByName(effect);
if (newPotionType != null) {
if (newPotionType.equals(PotionEffectType.BLINDNESS) || newPotionType.equals(PotionEffectType.CONFUSION) || newPotionType.equals(PotionEffectType.HUNGER)|| newPotionType.equals(PotionEffectType.POISON)|| newPotionType.equals(PotionEffectType.SLOW)|| newPotionType.equals(PotionEffectType.SLOW_DIGGING)|| newPotionType.equals(PotionEffectType.WEAKNESS)) {
  Settings.acidDamageType.add(newPotionType);
}
}
 else {
getLogger().warning("String_Node_Str" + effect + "String_Node_Str");
getLogger().warning("String_Node_Str");
getLogger().warning("String_Node_Str");
}
}
}
Settings.animalSpawnLimit=getConfig().getInt("String_Node_Str",15);
if (Settings.animalSpawnLimit > 100) {
Settings.animalSpawnLimit=100;
}
 else if (Settings.animalSpawnLimit < -1) {
Settings.animalSpawnLimit=-1;
}
Settings.monsterSpawnLimit=getConfig().getInt("String_Node_Str",70);
if (Settings.monsterSpawnLimit > 100) {
Settings.monsterSpawnLimit=100;
}
 else if (Settings.monsterSpawnLimit < -1) {
Settings.monsterSpawnLimit=-1;
}
Settings.waterAnimalSpawnLimit=getConfig().getInt("String_Node_Str",15);
if (Settings.waterAnimalSpawnLimit > 100) {
Settings.waterAnimalSpawnLimit=100;
}
 else if (Settings.waterAnimalSpawnLimit < -1) {
Settings.waterAnimalSpawnLimit=-1;
}
Settings.abandonedIslandLevel=getConfig().getInt("String_Node_Str",10);
if (Settings.abandonedIslandLevel < 0) {
Settings.abandonedIslandLevel=0;
}
Settings.island_protectionRange=getConfig().getInt("String_Node_Str",100);
if (!getConfig().getBoolean("String_Node_Str",false)) {
if (Settings.island_protectionRange > (Settings.islandDistance - 16)) {
Settings.island_protectionRange=Settings.islandDistance - 16;
getLogger().warning("String_Node_Str" + (Settings.islandDistance - 16) + "String_Node_Str"+ Settings.island_protectionRange);
}
}
if (Settings.island_protectionRange < 50) {
Settings.island_protectionRange=50;
}
Settings.resetChallenges=getConfig().getBoolean("String_Node_Str",true);
Settings.resetMoney=getConfig().getBoolean("String_Node_Str",true);
Settings.clearInventory=getConfig().getBoolean("String_Node_Str",true);
Settings.resetEnderChest=getConfig().getBoolean("String_Node_Str",false);
Settings.startingMoney=getConfig().getDouble("String_Node_Str",0D);
Settings.newNether=getConfig().getBoolean("String_Node_Str",false);
Settings.netherSpawnRadius=getConfig().getInt("String_Node_Str",25);
if (Settings.netherSpawnRadius < 0) {
Settings.netherSpawnRadius=0;
}
 else if (Settings.netherSpawnRadius > 100) {
Settings.netherSpawnRadius=100;
}
Settings.resetWait=getConfig().getInt("String_Node_Str",300);
if (Settings.resetWait < 0) {
Settings.resetWait=0;
}
Settings.resetLimit=getConfig().getInt("String_Node_Str",0);
if (Settings.resetWait < 0) {
Settings.resetWait=-1;
}
Settings.inviteWait=getConfig().getInt("String_Node_Str",60);
if (Settings.inviteWait < 0) {
Settings.inviteWait=0;
}
Settings.levelWait=getConfig().getInt("String_Node_Str",60);
if (Settings.levelWait < 0) {
Settings.levelWait=0;
}
Settings.resetConfirmWait=getConfig().getInt("String_Node_Str",10);
if (Settings.resetConfirmWait < 0) {
Settings.resetConfirmWait=0;
}
Settings.damageOps=getConfig().getBoolean("String_Node_Str",false);
Settings.logInRemoveMobs=getConfig().getBoolean("String_Node_Str",true);
Settings.islandRemoveMobs=getConfig().getBoolean("String_Node_Str",false);
final String[] chestItemString=getConfig().getString("String_Node_Str").split("String_Node_Str");
final ItemStack[] tempChest=new ItemStack[chestItemString.length];
for (int i=0; i < tempChest.length; i++) {
try {
String[] amountdata=chestItemString[i].split("String_Node_Str");
if (amountdata[0].equals("String_Node_Str")) {
if (amountdata.length == 2) {
  final String chestPotionEffect=getConfig().getString("String_Node_Str","String_Node_Str");
  if (!chestPotionEffect.isEmpty()) {
    Potion chestPotion=new Potion(PotionType.valueOf(chestPotionEffect));
    tempChest[i]=chestPotion.toItemStack(Integer.parseInt(amountdata[1]));
  }
}
 else if (amountdata.length == 3) {
  Potion chestPotion=new Potion(PotionType.valueOf(amountdata[1]));
  tempChest[i]=chestPotion.toItemStack(Integer.parseInt(amountdata[2]));
}
 else if (amountdata.length == 4) {
  if (amountdata[2].equals("String_Node_Str")) {
    Potion chestPotion=new Potion(PotionType.valueOf(amountdata[1])).extend();
    tempChest[i]=chestPotion.toItemStack(Integer.parseInt(amountdata[3]));
  }
 else   if (amountdata[2].equals("String_Node_Str")) {
    Potion chestPotion=new Potion(PotionType.valueOf(amountdata[1])).splash();
    tempChest[i]=chestPotion.toItemStack(Integer.parseInt(amountdata[3]));
  }
 else   if (amountdata[2].equals("String_Node_Str")) {
    Potion chestPotion=new Potion(PotionType.valueOf(amountdata[1])).extend().splash();
    tempChest[i]=chestPotion.toItemStack(Integer.parseInt(amountdata[3]));
  }
}
}
 else {
if (amountdata.length == 2) {
  tempChest[i]=new ItemStack(Material.getMaterial(amountdata[0]),Integer.parseInt(amountdata[1]));
}
 else if (amountdata.length == 3) {
  tempChest[i]=new ItemStack(Material.getMaterial(amountdata[0]),Integer.parseInt(amountdata[2]),Short.parseShort(amountdata[1]));
}
}
}
 catch (java.lang.IllegalArgumentException ex) {
getLogger().severe("String_Node_Str" + chestItemString[i]);
getLogger().severe("String_Node_Str" + ex.getMessage());
getLogger().info("String_Node_Str");
for (PotionType c : PotionType.values()) getLogger().info(c.name());
}
catch (Exception e) {
getLogger().severe("String_Node_Str" + chestItemString[i]);
getLogger().info("String_Node_Str");
for (Material c : Material.values()) getLogger().info(c.name());
}
}
Settings.chestItems=tempChest;
Settings.allowPvP=getConfig().getBoolean("String_Node_Str",false);
Settings.allowNetherPvP=getConfig().getBoolean("String_Node_Str",false);
Settings.allowBreakBlocks=getConfig().getBoolean("String_Node_Str",false);
Settings.allowPlaceBlocks=getConfig().getBoolean("String_Node_Str",false);
Settings.allowBedUse=getConfig().getBoolean("String_Node_Str",false);
Settings.allowBucketUse=getConfig().getBoolean("String_Node_Str",false);
Settings.allowShearing=getConfig().getBoolean("String_Node_Str",false);
Settings.allowEnderPearls=getConfig().getBoolean("String_Node_Str",false);
Settings.allowDoorUse=getConfig().getBoolean("String_Node_Str",false);
Settings.allowLeverButtonUse=getConfig().getBoolean("String_Node_Str",false);
Settings.allowCropTrample=getConfig().getBoolean("String_Node_Str",false);
Settings.allowChestAccess=getConfig().getBoolean("String_Node_Str",false);
Settings.allowFurnaceUse=getConfig().getBoolean("String_Node_Str",false);
Settings.allowRedStone=getConfig().getBoolean("String_Node_Str",false);
Settings.allowMusic=getConfig().getBoolean("String_Node_Str",false);
Settings.allowCrafting=getConfig().getBoolean("String_Node_Str",false);
Settings.allowBrewing=getConfig().getBoolean("String_Node_Str",false);
Settings.allowGateUse=getConfig().getBoolean("String_Node_Str",false);
Settings.allowHurtMobs=getConfig().getBoolean("String_Node_Str",true);
Settings.endermanDeathDrop=getConfig().getBoolean("String_Node_Str",true);
Settings.allowEndermanGriefing=getConfig().getBoolean("String_Node_Str",true);
Settings.allowCreeperDamage=getConfig().getBoolean("String_Node_Str",true);
Settings.allowTNTDamage=getConfig().getBoolean("String_Node_Str",false);
Settings.allowMonsterEggs=getConfig().getBoolean("String_Node_Str",false);
Settings.allowBreeding=getConfig().getBoolean("String_Node_Str",false);
Settings.allowFire=getConfig().getBoolean("String_Node_Str",false);
Settings.allowChestDamage=getConfig().getBoolean("String_Node_Str",false);
Settings.allowLeashUse=getConfig().getBoolean("String_Node_Str",false);
Settings.allowHurtMonsters=getConfig().getBoolean("String_Node_Str",true);
Settings.allowEnchanting=getConfig().getBoolean("String_Node_Str",true);
Settings.allowAnvilUse=getConfig().getBoolean("String_Node_Str",true);
Settings.allowVisitorKeepInvOnDeath=getConfig().getBoolean("String_Node_Str",false);
Settings.allowVisitorItemDrop=getConfig().getBoolean("String_Node_Str",true);
Settings.allowVisitorItemPickup=getConfig().getBoolean("String_Node_Str",true);
Settings.allowArmorStandUse=getConfig().getBoolean("String_Node_Str",false);
Settings.allowBeaconAccess=getConfig().getBoolean("String_Node_Str",false);
Settings.allowPortalUse=getConfig().getBoolean("String_Node_Str",true);
Settings.allowSpawnDoorUse=getConfig().getBoolean("String_Node_Str",true);
Settings.allowSpawnLeverButtonUse=getConfig().getBoolean("String_Node_Str",true);
Settings.allowSpawnChestAccess=getConfig().getBoolean("String_Node_Str",true);
Settings.allowSpawnFurnaceUse=getConfig().getBoolean("String_Node_Str",true);
Settings.allowSpawnRedStone=getConfig().getBoolean("String_Node_Str",false);
Settings.allowSpawnMusic=getConfig().getBoolean("String_Node_Str",true);
Settings.allowSpawnCrafting=getConfig().getBoolean("String_Node_Str",true);
Settings.allowSpawnBrewing=getConfig().getBoolean("String_Node_Str",true);
Settings.allowSpawnGateUse=getConfig().getBoolean("String_Node_Str",true);
Settings.allowSpawnMobSpawn=getConfig().getBoolean("String_Node_Str",false);
Settings.allowSpawnAnimalSpawn=getConfig().getBoolean("String_Node_Str",true);
Settings.allowSpawnAnimalKilling=getConfig().getBoolean("String_Node_Str",false);
Settings.allowSpawnMobKilling=getConfig().getBoolean("String_Node_Str",true);
Settings.allowSpawnMonsterEggs=getConfig().getBoolean("String_Node_Str",false);
Settings.allowSpawnEggs=getConfig().getBoolean("String_Node_Str",false);
Settings.allowSpawnBreakBlocks=getConfig().getBoolean("String_Node_Str",false);
Settings.allowSpawnPlaceBlocks=getConfig().getBoolean("String_Node_Str",false);
Settings.allowSpawnNoAcidWater=getConfig().getBoolean("String_Node_Str",false);
Settings.allowSpawnEnchanting=getConfig().getBoolean("String_Node_Str",true);
Settings.allowSpawnAnvilUse=getConfig().getBoolean("String_Node_Str",true);
Settings.allowSpawnBeaconAccess=getConfig().getBoolean("String_Node_Str",false);
final Set<String> challengeList=Challenges.getChallengeConfig().getConfigurationSection("String_Node_Str").getKeys(false);
Settings.challengeList=challengeList;
Settings.challengeLevels=Arrays.asList(Challenges.getChallengeConfig().getString("String_Node_Str").split("String_Node_Str"));
Settings.waiverAmount=Challenges.getChallengeConfig().getInt("String_Node_Str",1);
if (Settings.waiverAmount < 0) {
Settings.waiverAmount=0;
}
Settings.broadcastMessages=getConfig().getBoolean("String_Node_Str",true);
YamlConfiguration blockValuesConfig=Util.loadYamlFile("String_Node_Str");
Settings.blockLimits=new HashMap<Material,Integer>();
if (blockValuesConfig.isSet("String_Node_Str")) {
for (String material : blockValuesConfig.getConfigurationSection("String_Node_Str").getKeys(false)) {
try {
Material mat=Material.valueOf(material);
Settings.blockLimits.put(mat,blockValuesConfig.getInt("String_Node_Str" + material,0));
if (debug) {
  getLogger().info("String_Node_Str" + mat.toString() + "String_Node_Str"+ Settings.blockLimits.get(mat));
}
}
 catch (Exception e) {
getLogger().warning("String_Node_Str" + material + "String_Node_Str");
}
}
}
Settings.blockValues=new HashMap<Material,Integer>();
if (blockValuesConfig.isSet("String_Node_Str")) {
for (String material : blockValuesConfig.getConfigurationSection("String_Node_Str").getKeys(false)) {
try {
Material mat=Material.valueOf(material);
Settings.blockValues.put(mat,blockValuesConfig.getInt("String_Node_Str" + material,0));
if (debug) {
  getLogger().info(mat.toString() + "String_Node_Str" + Settings.blockValues.get(mat));
}
}
 catch (Exception e) {
getLogger().warning("String_Node_Str" + material + "String_Node_Str");
}
}
}
 else {
getLogger().severe("String_Node_Str");
}
Settings.biomeCost=getConfig().getDouble("String_Node_Str",100D);
if (Settings.biomeCost < 0D) {
Settings.biomeCost=0D;
getLogger().warning("String_Node_Str");
}
String defaultBiome=getConfig().getString("String_Node_Str","String_Node_Str");
try {
Settings.defaultBiome=Biome.valueOf(defaultBiome);
}
 catch (Exception e) {
getLogger().severe("String_Node_Str" + defaultBiome + "String_Node_Str");
Settings.defaultBiome=Biome.PLAINS;
}
Settings.breedingLimit=getConfig().getInt("String_Node_Str",0);
Settings.removeCompleteOntimeChallenges=getConfig().getBoolean("String_Node_Str",false);
Settings.addCompletedGlow=getConfig().getBoolean("String_Node_Str",true);
}