Re-Dream / misc

Miscelleanous Lua files that don't require their own repository (yet).

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

afksys: Player:AFKTime() returns improper values

Cynosphere opened this issue Β· comments

Player:AFKTime() returns time since server was online up to the point they were AFK for the server and other players.

Unless I'm doing something completely wrong or missing something like a calculation that should be there in the first place... πŸ™„

commented

Player:AFKTime() returns the last time the player was present relative to the server uptime (CurTime()) as you said.

If you want to get the time for how long the player has been afk for, use CurTime() - Player:AFKTime().
It doesn't return improper values but rather has a unclear function name.

Alright, thanks