diff --git a/common/src/main/java/me/lucko/luckperms/common/config/generic/adapter/ConfigurateConfigAdapter.java b/common/src/main/java/me/lucko/luckperms/common/config/generic/adapter/ConfigurateConfigAdapter.java index 26841d615..d43264e20 100644 --- a/common/src/main/java/me/lucko/luckperms/common/config/generic/adapter/ConfigurateConfigAdapter.java +++ b/common/src/main/java/me/lucko/luckperms/common/config/generic/adapter/ConfigurateConfigAdapter.java @@ -88,7 +88,7 @@ public abstract class ConfigurateConfigAdapter implements ConfigurationAdapter { @Override public List getStringList(String path, List def) { ConfigurationNode node = resolvePath(path); - if (node.isVirtual()) { + if (node.isVirtual() || !node.hasListChildren()) { return def; } @@ -98,7 +98,7 @@ public abstract class ConfigurateConfigAdapter implements ConfigurationAdapter { @Override public List getKeys(String path, List def) { ConfigurationNode node = resolvePath(path); - if (node.isVirtual()) { + if (node.isVirtual() || !node.hasMapChildren()) { return def; }