fixed error when loading incorrect setting format.

This commit is contained in:
gnembon committed 2019-10-01 02:51:10 -03:00
1 parent a066c02469
commit 7c4d6c2199
1 file changed
+7
@@ -189,10 +189,17 @@ public class SettingsManager
disableBooleanFromCategory(RuleCategory.COMMAND);
}
for (String key: conf.getLeft().keySet())
{
try
{
if (rules.get(key).set(server.getCommandSource(), conf.getLeft().get(key)) != null)
CarpetSettings.LOG.info("[CM]: loaded setting " + key + " as " + conf.getLeft().get(key) + " from " + identifier + ".conf");
}
catch (Exception exc)
{
CarpetSettings.LOG.error("[CM Error]: Failed to load setting: "+key+", "+exc);
}
}
locked = conf.getRight();
}