From 5f3b8526c7f1ec0ce961319be2dad06008bf91ec Mon Sep 17 00:00:00 2001 From: montlikadani Date: Sun, 16 May 2021 14:08:46 +0200 Subject: [PATCH] Invert condition here --- src/main/java/com/gamingmesh/jobs/Jobs.java | 1 - src/main/java/com/gamingmesh/jobs/PlayerManager.java | 3 ++- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/gamingmesh/jobs/Jobs.java b/src/main/java/com/gamingmesh/jobs/Jobs.java index 81aa299b..ba560d8e 100644 --- a/src/main/java/com/gamingmesh/jobs/Jobs.java +++ b/src/main/java/com/gamingmesh/jobs/Jobs.java @@ -890,7 +890,6 @@ public class Jobs extends JavaPlugin { } instance = null; - consoleMsg("&e[Jobs] &2Plugin has been disabled successfully."); } private static void checkDailyQuests(JobsPlayer jPlayer, Job job, ActionInfo info) { diff --git a/src/main/java/com/gamingmesh/jobs/PlayerManager.java b/src/main/java/com/gamingmesh/jobs/PlayerManager.java index 7b9edc59..c7d89530 100644 --- a/src/main/java/com/gamingmesh/jobs/PlayerManager.java +++ b/src/main/java/com/gamingmesh/jobs/PlayerManager.java @@ -307,7 +307,8 @@ public class PlayerManager { Iterator iter = players.values().iterator(); while (iter.hasNext()) { JobsPlayer jPlayer = iter.next(); - if (!jPlayer.isOnline() && jPlayer.isSaved()) + + if (jPlayer.isSaved() && !jPlayer.isOnline()) iter.remove(); }