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

View File

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