1
0
mirror of https://github.com/Zrips/Jobs.git synced 2024-12-11 11:51:54 +01:00

Invert condition here

This commit is contained in:
montlikadani 2021-05-16 14:08:46 +02:00
parent 0e2621e42a
commit 5f3b8526c7
2 changed files with 2 additions and 2 deletions

View File

@ -890,7 +890,6 @@ public class Jobs extends JavaPlugin {
} }
instance = null; instance = null;
consoleMsg("&e[Jobs] &2Plugin has been disabled successfully.");
} }
private static void checkDailyQuests(JobsPlayer jPlayer, Job job, ActionInfo info) { private static void checkDailyQuests(JobsPlayer jPlayer, Job job, ActionInfo info) {

View File

@ -307,7 +307,8 @@ public class PlayerManager {
Iterator<JobsPlayer> iter = players.values().iterator(); Iterator<JobsPlayer> iter = players.values().iterator();
while (iter.hasNext()) { while (iter.hasNext()) {
JobsPlayer jPlayer = iter.next(); JobsPlayer jPlayer = iter.next();
if (!jPlayer.isOnline() && jPlayer.isSaved())
if (jPlayer.isSaved() && !jPlayer.isOnline())
iter.remove(); iter.remove();
} }