1
0
mirror of https://github.com/Zrips/Jobs.git synced 2024-11-25 20:16:13 +01:00

Fix for data save for player who is offline

This commit is contained in:
Zrips 2023-11-16 18:02:39 +02:00
parent ffd4309de7
commit 6d20ca3d33

View File

@ -979,6 +979,8 @@ public class JobsPlayer {
}
public void setSaved(boolean isSaved) {
if (!isSaved && !isOnline())
Jobs.getPlayerManager().addPlayer(this);
this.isSaved = isSaved;
}