Fixes #1928 - Auto-AFK issue: AFK timer not reset on disconnect (#2458)

Update activity regardless of cancel-afk-on-interact setting
This commit is contained in:
Johnny Cao 2019-04-17 17:45:07 -07:00 committed by Joseph Hirschfeld
parent 26d63da7aa
commit eac1e9b574

View File

@ -180,7 +180,7 @@ public class EssentialsPlayerListener implements Listener {
}
}
user.updateActivityOnInteract(false);
user.updateActivity(false);
if (!user.isHidden()) {
user.setLastLogout(System.currentTimeMillis());
}
@ -218,7 +218,7 @@ public class EssentialsPlayerListener implements Listener {
final long currentTime = System.currentTimeMillis();
dUser.checkMuteTimeout(currentTime);
dUser.updateActivityOnInteract(false);
dUser.updateActivity(false);
dUser.stopTransaction();
class DelayJoinTask implements Runnable {