From df338ac1e33b49b0cd55a8f0eec7b6c7c5d1111e Mon Sep 17 00:00:00 2001 From: iTwins Date: Sun, 15 Oct 2023 22:19:53 +0200 Subject: [PATCH] added console warning for invalid state --- .../thebusybiscuit/slimefun4/implementation/Slimefun.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/io/github/thebusybiscuit/slimefun4/implementation/Slimefun.java b/src/main/java/io/github/thebusybiscuit/slimefun4/implementation/Slimefun.java index e42f1cef7a..e8c7b460a1 100644 --- a/src/main/java/io/github/thebusybiscuit/slimefun4/implementation/Slimefun.java +++ b/src/main/java/io/github/thebusybiscuit/slimefun4/implementation/Slimefun.java @@ -372,6 +372,8 @@ private void onPluginStart() { } new RainbowArmorTask().schedule(this, config.getInt("options.rainbow-armor-update-interval") * 20L); new SolarHelmetTask().schedule(this, config.getInt("options.armor-update-interval")); + } else if (config.getBoolean("options.enable-radiation")) { + logger.log(Level.WARNING, "Cannot enable radiation while armor effects are disabled."); } // Starting our tasks