From e80f769ed326f546de62c4755b3d0f74c3e89006 Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal00212@users.noreply.github.com> Date: Thu, 7 Sep 2023 12:11:53 +0200 Subject: removed debug command --- src/main/java/at/hannibal2/skyhanni/config/commands/Commands.kt | 6 ------ .../skyhanni/features/event/anniversary/ActivePlayerTimer.kt | 6 +++--- 2 files changed, 3 insertions(+), 9 deletions(-) (limited to 'src/main') 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 85cb33f8a..acd280967 100644 --- a/src/main/java/at/hannibal2/skyhanni/config/commands/Commands.kt +++ b/src/main/java/at/hannibal2/skyhanni/config/commands/Commands.kt @@ -8,7 +8,6 @@ import at.hannibal2.skyhanni.data.GuiEditManager import at.hannibal2.skyhanni.features.bingo.BingoCardDisplay import at.hannibal2.skyhanni.features.bingo.BingoNextStepHelper import at.hannibal2.skyhanni.features.chat.Translator -import at.hannibal2.skyhanni.features.event.anniversary.ActivePlayerTimer import at.hannibal2.skyhanni.features.event.diana.BurrowWarpHelper import at.hannibal2.skyhanni.features.event.diana.InquisitorWaypointShare import at.hannibal2.skyhanni.features.fame.AccountUpgradeReminder @@ -37,7 +36,6 @@ import at.hannibal2.skyhanni.test.TestBingo import at.hannibal2.skyhanni.test.command.* import at.hannibal2.skyhanni.utils.APIUtil import at.hannibal2.skyhanni.utils.LorenzUtils -import at.hannibal2.skyhanni.utils.TimeMark import net.minecraft.client.Minecraft import net.minecraft.command.ICommandSender import net.minecraft.event.ClickEvent @@ -249,10 +247,6 @@ object Commands { "shtestmessage", "Sends a custom chat message client side in the chat" ) { TestChatCommand.command(it) } - // TODO: remove for commit - registerCommand("shtestcenturytimer", "bleh") { - ActivePlayerTimer.lastTimerReceived = TimeMark(System.currentTimeMillis() - 19 * 60 * 1000L - 40 * 1000L) - } } private fun internalCommands() { diff --git a/src/main/java/at/hannibal2/skyhanni/features/event/anniversary/ActivePlayerTimer.kt b/src/main/java/at/hannibal2/skyhanni/features/event/anniversary/ActivePlayerTimer.kt index eb8d330a0..94b3e2141 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/event/anniversary/ActivePlayerTimer.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/event/anniversary/ActivePlayerTimer.kt @@ -21,10 +21,10 @@ import kotlin.time.Duration.Companion.seconds object ActivePlayerTimer { - var lastTimerReceived = TimeMark.never() - var lastTimeAlerted = TimeMark.never() + private var lastTimerReceived = TimeMark.never() + private var lastTimeAlerted = TimeMark.never() - var overlay: List>? = null + private var overlay: List>? = null @SubscribeEvent fun onChat(event: LorenzChatEvent) { -- cgit