From 564ed5a49508060020d31fd8cb7cc03c2374d15e Mon Sep 17 00:00:00 2001 From: Presti Date: Tue, 30 Jan 2024 03:47:04 +0100 Subject: [PATCH] Debug test. --- src/main/java/de/presti/ree6/bot/BotConfig.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/main/java/de/presti/ree6/bot/BotConfig.java b/src/main/java/de/presti/ree6/bot/BotConfig.java index cc6d1469c..14b2d4b35 100644 --- a/src/main/java/de/presti/ree6/bot/BotConfig.java +++ b/src/main/java/de/presti/ree6/bot/BotConfig.java @@ -1,12 +1,14 @@ package de.presti.ree6.bot; import de.presti.ree6.main.Main; +import lombok.extern.slf4j.Slf4j; import java.awt.*; /** * Utility class to save long term used Data. */ +@Slf4j public class BotConfig { /** @@ -99,6 +101,12 @@ public static String getBotName() { * @return if the module is activated. */ public static boolean isModuleActive(String moduleName) { + if (isDebug()) { + log.info("Checking if module " + moduleName + " is active."); + Object object = Main.getInstance().getConfig().getConfiguration().get("bot.misc.modules." + moduleName); + log.info("Module is null: " + (object == null)); + if (object != null) log.info("Module is active: " + ((boolean) object)); + } return Main.getInstance().getConfig().getConfiguration().getBoolean("bot.misc.modules." + moduleName, true); }