mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2024-09-12 06:48:50 +02: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) {
|
public void performedAction(UUID uuid, long time) {
|
||||||
Long lastMoved = lastMovement.getOrDefault(uuid, time);
|
Long lastMoved = lastMovement.getOrDefault(uuid, time);
|
||||||
lastMovement.put(uuid, lastMoved);
|
lastMovement.put(uuid, time);
|
||||||
|
|
||||||
if (time - lastMoved < afkThresholdMs) {
|
if (time - lastMoved < afkThresholdMs) {
|
||||||
// Threshold not crossed, no action required.
|
// Threshold not crossed, no action required.
|
||||||
|
Loading…
Reference in New Issue
Block a user