From 59100a036d0ce153c1218b2385414f7015c00afc Mon Sep 17 00:00:00 2001 From: downthecrop Date: Mon, 14 Oct 2024 23:35:01 -0700 Subject: [PATCH] logintimer reset on login but not during resize event ect --- plugin-playground/src/main/kotlin/LoginTimer/plugin.kt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/plugin-playground/src/main/kotlin/LoginTimer/plugin.kt b/plugin-playground/src/main/kotlin/LoginTimer/plugin.kt index 806f726..5cd6467 100644 --- a/plugin-playground/src/main/kotlin/LoginTimer/plugin.kt +++ b/plugin-playground/src/main/kotlin/LoginTimer/plugin.kt @@ -39,6 +39,10 @@ class plugin : Plugin() { return true } + override fun OnLogin() { + initTime = System.currentTimeMillis() + } + override fun Draw(timeDelta: Long) { if (component == null) return @@ -138,6 +142,9 @@ class plugin : Plugin() { API.InsertMiniMenuEntry("Disable Timer", "") { timeMode = DEFAULT_TIME_MODE } + API.InsertMiniMenuEntry("Reset Play Time", "") { + initTime = System.currentTimeMillis() + } } } } \ No newline at end of file