mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2024-12-26 11:08:08 +01:00
Fixed AFKTracker not tracking afk time correctly
This commit is contained in:
parent
8922541191
commit
8c38d5e13c
@ -27,7 +27,7 @@ public class AFKTracker {
|
||||
|
||||
public void performedAction(UUID uuid, long time) {
|
||||
Long lastMoved = lastMovement.getOrDefault(uuid, time);
|
||||
lastMovement.put(uuid, lastMoved);
|
||||
lastMovement.put(uuid, time);
|
||||
|
||||
if (time - lastMoved < afkThresholdMs) {
|
||||
// Threshold not crossed, no action required.
|
||||
|
Loading…
Reference in New Issue
Block a user