package at.hannibal2.skyhanni.features.rift import at.hannibal2.skyhanni.SkyHanniMod import at.hannibal2.skyhanni.events.GuiRenderEvent import at.hannibal2.skyhanni.events.LorenzActionBarEvent import at.hannibal2.skyhanni.events.LorenzChatEvent import at.hannibal2.skyhanni.utils.LorenzUtils import at.hannibal2.skyhanni.utils.RenderUtils.renderStrings import at.hannibal2.skyhanni.utils.StringUtils.matchMatcher import at.hannibal2.skyhanni.utils.TimeUtils import net.minecraftforge.event.world.WorldEvent import net.minecraftforge.fml.common.eventhandler.SubscribeEvent class RiftTimer { private val config get() = SkyHanniMod.feature.rift.timer private var display = listOf() private var maxTime = 0L private var latestTime = 0L private val changes = mutableMapOf() @SubscribeEvent fun onJoinWorld(ignored: WorldEvent.Load) { display = emptyList() maxTime = 0 latestTime = 0 } @SubscribeEvent fun onChatMessage(event: LorenzChatEvent) { if (!isEnabled()) return val message = event.message " §r§7You have §r§a(?