mirror of
https://github.com/EssentialsX/Essentials.git
synced 2025-03-13 15:20:14 +01: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
|
@Override
|
||||||
public boolean isHiddenFrom(Player player) {
|
public boolean isHiddenFrom(Player player) {
|
||||||
|
if (getBase() instanceof OfflinePlayer || player instanceof OfflinePlayer) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
return !player.canSee(getBase());
|
return !player.canSee(getBase());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user