9
0
mirror of https://github.com/HibiscusMC/HMCCosmetics.git synced 2025-12-29 11:59:21 +00:00

fix: check if player is still online after join delay

This commit is contained in:
LoJoSho
2024-01-05 13:36:12 -06:00
parent 5522eed2d1
commit 9a75fcb55b

View File

@@ -33,6 +33,7 @@ public class PlayerConnectionListener implements Listener {
}
Runnable run = () -> {
if (!event.getPlayer().isOnline()) return; // If a player is no longer online, don't run this.
CosmeticUser user = Database.get(event.getPlayer().getUniqueId());
CosmeticUsers.addUser(user);
MessagesUtil.sendDebugMessages("Run User Join");