mirror of
https://github.com/essentials/Essentials.git
synced 2025-08-13 18:14:38 +02:00
Don't allow an empty list value.
This commit is contained in:
@@ -459,7 +459,10 @@ public class Settings implements ISettings
|
||||
{
|
||||
if (config.isConfigurationSection("list"))
|
||||
{
|
||||
return config.getConfigurationSection("list").getValues(false);
|
||||
Map<String, Object> values = config.getConfigurationSection("list").getValues(false);
|
||||
if (!values.isEmpty()) {
|
||||
return values;
|
||||
}
|
||||
}
|
||||
Map<String, Object> defaultMap = new HashMap<String, Object>();
|
||||
if (config.getBoolean("sort-list-by-groups", false)) {
|
||||
|
Reference in New Issue
Block a user