mirror of
https://gitlab.com/2009scape/rt4-client.git
synced 2025-12-09 16:45:46 -07:00
logintimer reset on login but not during resize event ect
This commit is contained in:
parent
f8dcbfafdb
commit
59100a036d
1 changed files with 7 additions and 0 deletions
|
|
@ -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()
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue