diff --git a/Plan/common/src/main/java/com/djrapitops/plan/settings/config/paths/key/TimeSetting.java b/Plan/common/src/main/java/com/djrapitops/plan/settings/config/paths/key/TimeSetting.java index 1ca6d940b..4e00a8dc5 100644 --- a/Plan/common/src/main/java/com/djrapitops/plan/settings/config/paths/key/TimeSetting.java +++ b/Plan/common/src/main/java/com/djrapitops/plan/settings/config/paths/key/TimeSetting.java @@ -62,7 +62,7 @@ public class TimeSetting extends Setting { TimeUnit unit = TimeUnit.valueOf(unitName.toUpperCase()); return unit.toMillis(duration); } catch (IllegalArgumentException e) { - return -1L; + throw new IllegalStateException("Config value for " + path + ".Unit has a bad value: " + e.getMessage()); } } -} \ No newline at end of file +}