From 764cabd12189c65d4fb280fc5865254af0c9ea8b Mon Sep 17 00:00:00 2001 From: Zrips Date: Fri, 13 Jan 2017 17:43:36 +0200 Subject: [PATCH] Update seen only on player quit --- com/gamingmesh/jobs/PlayerManager.java | 1 + com/gamingmesh/jobs/dao/JobsDAO.java | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/com/gamingmesh/jobs/PlayerManager.java b/com/gamingmesh/jobs/PlayerManager.java index 8191ba59..7dd8525b 100644 --- a/com/gamingmesh/jobs/PlayerManager.java +++ b/com/gamingmesh/jobs/PlayerManager.java @@ -154,6 +154,7 @@ public class PlayerManager { } else { jPlayer.onDisconnect(); } + Jobs.getJobsDAO().updateSeen(jPlayer); } /** diff --git a/com/gamingmesh/jobs/dao/JobsDAO.java b/com/gamingmesh/jobs/dao/JobsDAO.java index 1d9d68d9..fb741f3c 100644 --- a/com/gamingmesh/jobs/dao/JobsDAO.java +++ b/com/gamingmesh/jobs/dao/JobsDAO.java @@ -939,7 +939,6 @@ public abstract class JobsDAO { } finally { close(prest); } - updateSeen(player); } public void updateSeen(JobsPlayer player) {