fix: lock.lock();

This commit is contained in:
ChomeNS
2024-12-10 17:53:18 +07:00
parent 634c8cf087
commit 7e4139cebc
2 changed files with 3 additions and 1 deletions

View File

@@ -1 +1 @@
1234
1235

View File

@@ -86,6 +86,8 @@ public class PlayersPersistentDataPlugin extends PlayersPlugin.Listener {
public void playerLeft(PlayerEntry target) {
bot.executorService.submit(() -> {
try {
lock.lock();
if (!playersObject.has(getName(target))) return;
final ObjectNode player = (ObjectNode) playersObject.get(getName(target));