fix formatting and name, autoenable, and hide

This commit is contained in:
Bella 2020-02-16 16:25:31 -05:00
parent 2e1e21524c
commit cce6bd5d52
3 changed files with 9 additions and 3 deletions

View File

@ -18,6 +18,7 @@ import me.zeroeightsix.kami.gui.rgui.util.Docking;
import me.zeroeightsix.kami.module.Module; import me.zeroeightsix.kami.module.Module;
import me.zeroeightsix.kami.module.ModuleManager; import me.zeroeightsix.kami.module.ModuleManager;
import me.zeroeightsix.kami.module.modules.capes.Capes; 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.gui.CleanGUI;
import me.zeroeightsix.kami.module.modules.misc.CustomChat; import me.zeroeightsix.kami.module.modules.misc.CustomChat;
import me.zeroeightsix.kami.module.modules.misc.DiscordSettings; import me.zeroeightsix.kami.module.modules.misc.DiscordSettings;
@ -207,6 +208,9 @@ public class KamiMod {
if (((CleanGUI) ModuleManager.getModuleByName("CleanGUI")).startupGlobal.getValue()) { if (((CleanGUI) ModuleManager.getModuleByName("CleanGUI")).startupGlobal.getValue()) {
ModuleManager.getModuleByName("CleanGUI").setEnabled(true); ModuleManager.getModuleByName("CleanGUI").setEnabled(true);
} }
if (((StrengthDetect) ModuleManager.getModuleByName("Strength Detect")).startupGlobal.getValue()) {
ModuleManager.getModuleByName("Strength Detect").setEnabled(true);
}
} }
catch (NullPointerException e) { catch (NullPointerException e) {

View File

@ -2,5 +2,7 @@ package me.zeroeightsix.kami.module.modules.combat;
import me.zeroeightsix.kami.module.Module; 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") @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 class StrengthDetect extends Module {
public Setting<Boolean> startupGlobal = register(Settings.b("Enable Automatically", true));
}