From 6d20ca3d33c57a0d62510e565883653bb2cd8d38 Mon Sep 17 00:00:00 2001 From: Zrips Date: Thu, 16 Nov 2023 18:02:39 +0200 Subject: [PATCH] Fix for data save for player who is offline --- src/main/java/com/gamingmesh/jobs/container/JobsPlayer.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/com/gamingmesh/jobs/container/JobsPlayer.java b/src/main/java/com/gamingmesh/jobs/container/JobsPlayer.java index 14dc5bd6..58a421c1 100644 --- a/src/main/java/com/gamingmesh/jobs/container/JobsPlayer.java +++ b/src/main/java/com/gamingmesh/jobs/container/JobsPlayer.java @@ -979,6 +979,8 @@ public class JobsPlayer { } public void setSaved(boolean isSaved) { + if (!isSaved && !isOnline()) + Jobs.getPlayerManager().addPlayer(this); this.isSaved = isSaved; }