Forgot to add environment to the worlds config!

This commit is contained in:
Eric Stokes 2011-06-18 14:44:50 -06:00
parent 6afd8dfdfb
commit c668bdb4f5
2 changed files with 3 additions and 1 deletions

View File

@ -49,6 +49,7 @@ public class MVWorld {
initLists();
this.alias = config.getString("worlds." + this.name + ".alias", "");
this.pvp = config.getBoolean("worlds." + this.name + ".pvp", true);
this.compression = config.getDouble("worlds." + this.name + ".compression", 1.0);
@ -75,7 +76,7 @@ public class MVWorld {
this.monsterList.add(s.toUpperCase());
System.out.print(s);
}
config.setProperty("worlds." + this.name + ".environment", this.environment.toString());
config.save();
if (config.getIntList("worlds." + name + ".blockBlacklist", new ArrayList<Integer>()).size() == 0) {
addSampleData();

View File

@ -465,6 +465,7 @@ public class MultiverseCore extends JavaPlugin {
public boolean removeWorld(String name) {
unloadWorld(name);
configWorlds.removeProperty("worlds." + name);
configWorlds.save();
return false;
}