diff --git a/Core/src/main/java/com/intellectualcrafters/plot/config/Config.java b/Core/src/main/java/com/intellectualcrafters/plot/config/Config.java index 1fbdb8c19..cf9ab4785 100644 --- a/Core/src/main/java/com/intellectualcrafters/plot/config/Config.java +++ b/Core/src/main/java/com/intellectualcrafters/plot/config/Config.java @@ -65,9 +65,13 @@ public class Config { if (field.getAnnotation(Final.class) != null) { return; } + if (field.getType() == String.class && !(value instanceof String)) { + value = value + ""; + } field.set(instance, value); return; - } catch (IllegalAccessException e) { + } catch (Throwable e) { + PS.debug("Invalid configuration value: " + key + ": " + value + " in " + root.getSimpleName()); e.printStackTrace(); } }