diff options
author | ElgarL <ElgarL@palmergames.com> | 2011-10-16 01:23:25 +0100 |
---|---|---|
committer | ElgarL <ElgarL@palmergames.com> | 2011-10-16 01:23:25 +0100 |
commit | 121966436e381b96f3905301a8567b9767b2b36e (patch) | |
tree | 7cf334dc33736eda6e7ad257d273a550940338dd /EssentialsGroupManager/src/org/anjocaido | |
parent | 03adb56d256315924fd3cb14e5281dec28967195 (diff) | |
download | Essentials-121966436e381b96f3905301a8567b9767b2b36e.tar Essentials-121966436e381b96f3905301a8567b9767b2b36e.tar.gz Essentials-121966436e381b96f3905301a8567b9767b2b36e.tar.lz Essentials-121966436e381b96f3905301a8567b9767b2b36e.tar.xz Essentials-121966436e381b96f3905301a8567b9767b2b36e.zip |
Fixed reading world mirrors from the config.
Diffstat (limited to 'EssentialsGroupManager/src/org/anjocaido')
-rw-r--r-- | EssentialsGroupManager/src/org/anjocaido/groupmanager/GMConfiguration.java | 6 | ||||
-rw-r--r-- | EssentialsGroupManager/src/org/anjocaido/groupmanager/dataholder/worlds/WorldsHolder.java | 8 |
2 files changed, 7 insertions, 7 deletions
diff --git a/EssentialsGroupManager/src/org/anjocaido/groupmanager/GMConfiguration.java b/EssentialsGroupManager/src/org/anjocaido/groupmanager/GMConfiguration.java index af21b31bb..e57ce139e 100644 --- a/EssentialsGroupManager/src/org/anjocaido/groupmanager/GMConfiguration.java +++ b/EssentialsGroupManager/src/org/anjocaido/groupmanager/GMConfiguration.java @@ -58,9 +58,9 @@ public class GMConfiguration { return GMconfig.getBoolean("settings.config.opOverrides", true); } - @SuppressWarnings("unchecked") - public Map<String, Object> getMirrorsMap() { - return (Map<String, Object>) GMconfig.getList("settings.permission.world.mirror"); + public Map<String, Object> getMirrorsMap() { + + return (Map<String, Object>) GMconfig.getConfigurationSection("settings.permission.world.mirror").getValues(false); } public Integer getSaveInterval() { diff --git a/EssentialsGroupManager/src/org/anjocaido/groupmanager/dataholder/worlds/WorldsHolder.java b/EssentialsGroupManager/src/org/anjocaido/groupmanager/dataholder/worlds/WorldsHolder.java index 0bcf9a827..573fcebc3 100644 --- a/EssentialsGroupManager/src/org/anjocaido/groupmanager/dataholder/worlds/WorldsHolder.java +++ b/EssentialsGroupManager/src/org/anjocaido/groupmanager/dataholder/worlds/WorldsHolder.java @@ -99,11 +99,11 @@ public class WorldsHolder { * don't load any worlds which are already loaded * or mirrored worlds that don't need data. */ - if (worldsData.containsKey(folder.getName().toLowerCase()) - || mirrors.containsKey(folder.getName().toLowerCase())) { - continue; + if (!worldsData.containsKey(folder.getName().toLowerCase()) + || !mirrors.containsKey(folder.getName().toLowerCase())) { + loadWorld(folder.getName()); } - loadWorld(folder.getName()); + } } } |