diff --git a/src/main/java/me/zeroeightsix/kami/KamiMod.java b/src/main/java/me/zeroeightsix/kami/KamiMod.java index 268d192d..a1f60873 100644 --- a/src/main/java/me/zeroeightsix/kami/KamiMod.java +++ b/src/main/java/me/zeroeightsix/kami/KamiMod.java @@ -18,6 +18,7 @@ import me.zeroeightsix.kami.gui.rgui.util.Docking; import me.zeroeightsix.kami.module.Module; import me.zeroeightsix.kami.module.ModuleManager; import me.zeroeightsix.kami.module.modules.capes.Capes; +import me.zeroeightsix.kami.module.modules.combat.StrengthDetect; import me.zeroeightsix.kami.module.modules.gui.CleanGUI; import me.zeroeightsix.kami.module.modules.misc.CustomChat; import me.zeroeightsix.kami.module.modules.misc.DiscordSettings; @@ -207,6 +208,9 @@ public class KamiMod { if (((CleanGUI) ModuleManager.getModuleByName("CleanGUI")).startupGlobal.getValue()) { ModuleManager.getModuleByName("CleanGUI").setEnabled(true); } + if (((StrengthDetect) ModuleManager.getModuleByName("Strength Detect")).startupGlobal.getValue()) { + ModuleManager.getModuleByName("Strength Detect").setEnabled(true); + } } catch (NullPointerException e) { diff --git a/src/main/java/me/zeroeightsix/kami/gui/kami/KamiGUI.java b/src/main/java/me/zeroeightsix/kami/gui/kami/KamiGUI.java index 46c3fc7c..7f6ad06e 100644 --- a/src/main/java/me/zeroeightsix/kami/gui/kami/KamiGUI.java +++ b/src/main/java/me/zeroeightsix/kami/gui/kami/KamiGUI.java @@ -319,7 +319,7 @@ public class KamiGUI extends GUI { String posString = (e.posY > mc.player.posY ? ChatFormatting.DARK_GREEN + "+" : (e.posY == mc.player.posY ? " " : ChatFormatting.DARK_RED + "-")); String strengthfactor = ""; EntityPlayer eplayer = (EntityPlayer) e; - if (eplayer.isPotionActive(MobEffects.STRENGTH) & ModuleManager.isModuleEnabled("StrengthDetect")) strengthfactor = "S "; + if (eplayer.isPotionActive(MobEffects.STRENGTH) & ModuleManager.isModuleEnabled("Strength Detect")) strengthfactor = "S "; float hpRaw = ((EntityLivingBase) e).getHealth() + ((EntityLivingBase) e).getAbsorptionAmount(); String hp = dfHealth.format(hpRaw); healthSB.append(KamiMod.colour); diff --git a/src/main/java/me/zeroeightsix/kami/module/modules/combat/StrengthDetect.java b/src/main/java/me/zeroeightsix/kami/module/modules/combat/StrengthDetect.java index 4c81b130..2c6bd66f 100644 --- a/src/main/java/me/zeroeightsix/kami/module/modules/combat/StrengthDetect.java +++ b/src/main/java/me/zeroeightsix/kami/module/modules/combat/StrengthDetect.java @@ -2,5 +2,7 @@ package me.zeroeightsix.kami.module.modules.combat; import me.zeroeightsix.kami.module.Module; -@Module.Info(name = "StrengthDetect", category = Module.Category.COMBAT, description = "Displays active strength effect of players in the text radar") -public class StrengthDetect extends Module {} \ No newline at end of file +@Module.Info(name = "Strength Detect", category = Module.Category.COMBAT, description = "Displays active strength effect of players in the text radar", showOnArray = Module.ShowOnArray.OFF) +public class StrengthDetect extends Module { + public Setting startupGlobal = register(Settings.b("Enable Automatically", true)); +}