Attempt to fix issue with user instances being unloaded for online players on Bungee (#2238, #2225, #2107 & more)

This commit is contained in:
Luck 2020-04-28 13:46:17 +01:00
parent 99348fce53
commit 2fd896508b
No known key found for this signature in database
GPG Key ID: EFA9B3EC5FD90F8B

View File

@ -230,7 +230,6 @@ public class LPBungeeBootstrap extends Plugin implements LuckPermsBootstrap {
@Override @Override
public boolean isPlayerOnline(UUID uniqueId) { public boolean isPlayerOnline(UUID uniqueId) {
ProxiedPlayer player = getProxy().getPlayer(uniqueId); return getProxy().getPlayer(uniqueId) != null;
return player != null && player.isConnected();
} }
} }