mirror of
https://github.com/Multiverse/Multiverse-Core.git
synced 2025-02-02 13:41:22 +01:00
Forgot to add environment to the worlds config!
This commit is contained in:
parent
6afd8dfdfb
commit
c668bdb4f5
@ -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();
|
||||||
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user