mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-02-12 04:20:41 +00:00
Pull the default list behavior from the old 'sort-list-by-groups' variable if it exists.
This commit is contained in:
parent
2dda15d47f
commit
f5c17fc7c7
1 changed files with 6 additions and 1 deletions
|
@ -462,7 +462,12 @@ public class Settings implements ISettings
|
|||
return config.getConfigurationSection("list").getValues(false);
|
||||
}
|
||||
Map<String, Object> defaultMap = new HashMap<String, Object>();
|
||||
if (config.getBoolean("sort-list-by-groups", false)) {
|
||||
defaultMap.put("ListByGroup", "ListByGroup");
|
||||
}
|
||||
else {
|
||||
defaultMap.put("Players", "*");
|
||||
}
|
||||
return defaultMap;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue