summaryrefslogtreecommitdiffstats
path: root/EssentialsGroupManager/src/org
diff options
context:
space:
mode:
authorElgarL <ElgarL@palmergames.com>2011-10-16 03:35:55 +0100
committerElgarL <ElgarL@palmergames.com>2011-10-16 03:35:55 +0100
commite04936455780f0649d4ae7975aeadd061fad1d29 (patch)
tree6197b327a75911a77ffa69b4bfa4936b13f9b256 /EssentialsGroupManager/src/org
parent121966436e381b96f3905301a8567b9767b2b36e (diff)
downloadEssentials-e04936455780f0649d4ae7975aeadd061fad1d29.tar
Essentials-e04936455780f0649d4ae7975aeadd061fad1d29.tar.gz
Essentials-e04936455780f0649d4ae7975aeadd061fad1d29.tar.lz
Essentials-e04936455780f0649d4ae7975aeadd061fad1d29.tar.xz
Essentials-e04936455780f0649d4ae7975aeadd061fad1d29.zip
Simplified config.yml while retaining backwards compatibility.
Diffstat (limited to 'EssentialsGroupManager/src/org')
-rw-r--r--EssentialsGroupManager/src/org/anjocaido/groupmanager/GMConfiguration.java8
1 files changed, 6 insertions, 2 deletions
diff --git a/EssentialsGroupManager/src/org/anjocaido/groupmanager/GMConfiguration.java b/EssentialsGroupManager/src/org/anjocaido/groupmanager/GMConfiguration.java
index e57ce139e..302f12b67 100644
--- a/EssentialsGroupManager/src/org/anjocaido/groupmanager/GMConfiguration.java
+++ b/EssentialsGroupManager/src/org/anjocaido/groupmanager/GMConfiguration.java
@@ -59,8 +59,12 @@ public class GMConfiguration {
}
public Map<String, Object> getMirrorsMap() {
-
- return (Map<String, Object>) GMconfig.getConfigurationSection("settings.permission.world.mirror").getValues(false);
+ // Try to fetch the old mirror path first
+ if (GMconfig.isConfigurationSection("settings.permission.world.mirror"))
+ return (Map<String, Object>) GMconfig.getConfigurationSection("settings.permission.world.mirror").getValues(false);
+ else
+ return (Map<String, Object>) GMconfig.getConfigurationSection("settings.mirrors").getValues(false);
+
}
public Integer getSaveInterval() {