diff options
Diffstat (limited to 'src/main')
4 files changed, 18 insertions, 1 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/SkyHanniMod.kt b/src/main/java/at/hannibal2/skyhanni/SkyHanniMod.kt index ac5d0ddc8..00da1d347 100644 --- a/src/main/java/at/hannibal2/skyhanni/SkyHanniMod.kt +++ b/src/main/java/at/hannibal2/skyhanni/SkyHanniMod.kt @@ -68,6 +68,7 @@ import at.hannibal2.skyhanni.features.summonings.SummoningSoulsName import at.hannibal2.skyhanni.mixins.hooks.RenderLivingEntityHelper import at.hannibal2.skyhanni.test.LorenzTest import at.hannibal2.skyhanni.test.PacketTest +import at.hannibal2.skyhanni.test.TestBingo import at.hannibal2.skyhanni.utils.MinecraftConsoleFilter.Companion.initLogging import at.hannibal2.skyhanni.utils.NEUVersionCheck.checkIfNeuIsLoaded import at.hannibal2.skyhanni.utils.TabListData @@ -270,6 +271,7 @@ class SkyHanniMod { loadModule(LorenzTest()) loadModule(ButtonOnPause()) loadModule(PacketTest()) + loadModule(TestBingo) } @Mod.EventHandler diff --git a/src/main/java/at/hannibal2/skyhanni/config/commands/Commands.kt b/src/main/java/at/hannibal2/skyhanni/config/commands/Commands.kt index 259beee57..0981fdaa4 100644 --- a/src/main/java/at/hannibal2/skyhanni/config/commands/Commands.kt +++ b/src/main/java/at/hannibal2/skyhanni/config/commands/Commands.kt @@ -17,6 +17,7 @@ import at.hannibal2.skyhanni.features.misc.CollectionCounter import at.hannibal2.skyhanni.features.misc.MarkedPlayerManager import at.hannibal2.skyhanni.test.LorenzTest import at.hannibal2.skyhanni.test.PacketTest +import at.hannibal2.skyhanni.test.TestBingo import at.hannibal2.skyhanni.test.command.CopyItemCommand import at.hannibal2.skyhanni.test.command.CopyNearbyEntitiesCommand import at.hannibal2.skyhanni.utils.APIUtil @@ -63,6 +64,7 @@ object Commands { registerCommand("shtestcomposter") { ComposterOverlay.onCommand(it) } registerCommand("shclearcropspeed") { GardenAPI.clearCropSpeed() } registerCommand("shclearminiondata") { MinionFeatures.clearMinionData() } + registerCommand("shtestbingo") { TestBingo.toggle() } } private fun registerCommand(name: String, function: (Array<String>) -> Unit) { diff --git a/src/main/java/at/hannibal2/skyhanni/test/TestBingo.kt b/src/main/java/at/hannibal2/skyhanni/test/TestBingo.kt new file mode 100644 index 000000000..f2eda2892 --- /dev/null +++ b/src/main/java/at/hannibal2/skyhanni/test/TestBingo.kt @@ -0,0 +1,12 @@ +package at.hannibal2.skyhanni.test + +import at.hannibal2.skyhanni.utils.LorenzUtils + +object TestBingo { + var testBingo = false + + fun toggle() { + testBingo = !testBingo + LorenzUtils.chat("§e[SkyHanni] Test Bingo " + (if (testBingo) "enabled" else "disabled")) + } +}
\ No newline at end of file diff --git a/src/main/java/at/hannibal2/skyhanni/utils/LorenzUtils.kt b/src/main/java/at/hannibal2/skyhanni/utils/LorenzUtils.kt index 7d0f817b5..71ad9edf2 100644 --- a/src/main/java/at/hannibal2/skyhanni/utils/LorenzUtils.kt +++ b/src/main/java/at/hannibal2/skyhanni/utils/LorenzUtils.kt @@ -4,6 +4,7 @@ import at.hannibal2.skyhanni.SkyHanniMod import at.hannibal2.skyhanni.data.HypixelData import at.hannibal2.skyhanni.data.IslandType import at.hannibal2.skyhanni.features.dungeon.DungeonData +import at.hannibal2.skyhanni.test.TestBingo import at.hannibal2.skyhanni.utils.StringUtils.removeColor import at.hannibal2.skyhanni.utils.StringUtils.toDashlessUUID import io.github.moulberry.notenoughupdates.mixins.AccessorGuiEditSign @@ -49,7 +50,7 @@ object LorenzUtils { get() = HypixelData.noTrade val isBingoProfile: Boolean - get() = inSkyBlock && HypixelData.bingo + get() = inSkyBlock && (HypixelData.bingo || TestBingo.testBingo) val lastWorldSwitch: Long get() = HypixelData.joinedWorld |