mirror of
https://github.com/Multiverse/Multiverse-Core.git
synced 2024-11-25 20:16:06 +01:00
Fixed removeWorldFromConfig(String).
This commit is contained in:
parent
bbe134bd1a
commit
0efc0b965b
@ -169,15 +169,11 @@ public class WorldManager implements MVWorldManager {
|
|||||||
if (!unloadWorld(name)) {
|
if (!unloadWorld(name)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if (this.configWorlds.get("worlds." + name) != null) {
|
if (this.worldsFromTheConfig.containsKey(name)) {
|
||||||
|
this.worldsFromTheConfig.remove(name);
|
||||||
this.plugin.log(Level.INFO, "World '" + name + "' was removed from config.yml");
|
this.plugin.log(Level.INFO, "World '" + name + "' was removed from config.yml");
|
||||||
this.configWorlds.set("worlds." + name, null);
|
|
||||||
|
|
||||||
this.saveWorldsConfig();
|
this.saveWorldsConfig();
|
||||||
// Remove it from the list of worlds.
|
|
||||||
if (this.worldsFromTheConfig.containsKey(name)) {
|
|
||||||
this.worldsFromTheConfig.remove(name);
|
|
||||||
}
|
|
||||||
return true;
|
return true;
|
||||||
} else {
|
} else {
|
||||||
this.plugin.log(Level.INFO, "World '" + name + "' was already removed from config.yml");
|
this.plugin.log(Level.INFO, "World '" + name + "' was already removed from config.yml");
|
||||||
|
Loading…
Reference in New Issue
Block a user