mirror of
https://github.com/EssentialsX/Essentials.git
synced 2024-12-15 03:50:14 +08:00
Don't do visibility checks for OfflinePlayers (#5375)
Co-authored-by: MD <1917406+mdcfe@users.noreply.github.com>
This commit is contained in:
parent
ed41790712
commit
a1fa1e38f8
@ -679,6 +679,9 @@ public class User extends UserData implements Comparable<User>, IMessageRecipien
|
||||
|
||||
@Override
|
||||
public boolean isHiddenFrom(Player player) {
|
||||
if (getBase() instanceof OfflinePlayer || player instanceof OfflinePlayer) {
|
||||
return true;
|
||||
}
|
||||
return !player.canSee(getBase());
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user