summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKHobbits <rob@khobbits.co.uk>2013-03-19 09:00:50 +0000
committerKHobbits <rob@khobbits.co.uk>2013-03-19 09:00:50 +0000
commitf5c17fc7c79e9812aa52e9f6a4c22fe9d0f6571b (patch)
tree33ff1edb23435a4f25cb947820737e25455ca2cf
parent2dda15d47f37feff7fbb5fe9cff42647d7ed23fb (diff)
downloadEssentials-f5c17fc7c79e9812aa52e9f6a4c22fe9d0f6571b.tar
Essentials-f5c17fc7c79e9812aa52e9f6a4c22fe9d0f6571b.tar.gz
Essentials-f5c17fc7c79e9812aa52e9f6a4c22fe9d0f6571b.tar.lz
Essentials-f5c17fc7c79e9812aa52e9f6a4c22fe9d0f6571b.tar.xz
Essentials-f5c17fc7c79e9812aa52e9f6a4c22fe9d0f6571b.zip
Pull the default list behavior from the old 'sort-list-by-groups' variable if it exists.
-rw-r--r--Essentials/src/com/earth2me/essentials/Settings.java7
1 files changed, 6 insertions, 1 deletions
diff --git a/Essentials/src/com/earth2me/essentials/Settings.java b/Essentials/src/com/earth2me/essentials/Settings.java
index d49d5bac7..d1bd94489 100644
--- a/Essentials/src/com/earth2me/essentials/Settings.java
+++ b/Essentials/src/com/earth2me/essentials/Settings.java
@@ -462,7 +462,12 @@ public class Settings implements ISettings
return config.getConfigurationSection("list").getValues(false);
}
Map<String, Object> defaultMap = new HashMap<String, Object>();
- defaultMap.put("Players", "*");
+ if (config.getBoolean("sort-list-by-groups", false)) {
+ defaultMap.put("ListByGroup", "ListByGroup");
+ }
+ else {
+ defaultMap.put("Players", "*");
+ }
return defaultMap;
}