mirror of
https://github.com/essentials/Essentials.git
synced 2025-08-10 16:48:05 +02:00
Pull the default list behavior from the old 'sort-list-by-groups' variable if it exists.
This commit is contained in:
@@ -462,7 +462,12 @@ public class Settings implements ISettings
|
|||||||
return config.getConfigurationSection("list").getValues(false);
|
return config.getConfigurationSection("list").getValues(false);
|
||||||
}
|
}
|
||||||
Map<String, Object> defaultMap = new HashMap<String, Object>();
|
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;
|
return defaultMap;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user