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