From c12421e067f2bb0019b3d407cc7d9d31bfb77fa9 Mon Sep 17 00:00:00 2001 From: Wolfieheart Date: Tue, 31 Dec 2024 14:57:38 +0100 Subject: [PATCH] [CORE] Add Debug when you run `/ase reload` Signed-off-by: Wolfieheart --- .../armorstandeditor/ArmorStandEditorPlugin.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/main/java/io/github/rypofalem/armorstandeditor/ArmorStandEditorPlugin.java b/src/main/java/io/github/rypofalem/armorstandeditor/ArmorStandEditorPlugin.java index 55eb26fd..65ee514f 100644 --- a/src/main/java/io/github/rypofalem/armorstandeditor/ArmorStandEditorPlugin.java +++ b/src/main/java/io/github/rypofalem/armorstandeditor/ArmorStandEditorPlugin.java @@ -665,6 +665,14 @@ public void performReload() { opUpdateNotification = getConfig().getBoolean("opUpdateNotification", true); updateCheckerInterval = getConfig().getDouble("updateCheckerInterval", 24); + + // Add Debug Reload + debugFlag = getConfig().getBoolean("debugFlag", false); + if (debugFlag) { + getServer().getLogger().log(Level.INFO, "[ArmorStandEditor-Debug] ArmorStandEditor Debug Mode is now ENABLED! Use this ONLY for testing Purposes. If you can see this and you have debug disabled, please report it as a bug!"); + } + + //Run UpdateChecker - Reports out to Console on Startup ONLY! if (!hasFolia && runTheUpdateChecker) {