Skip to content

Commit a1fa1e3

Browse files
JRoymdcfe
andauthored
Don't do visibility checks for OfflinePlayers (#5375)
Co-authored-by: MD <[email protected]>
1 parent ed41790 commit a1fa1e3

File tree

1 file changed

+3
-0
lines changed
  • Essentials/src/main/java/com/earth2me/essentials

1 file changed

+3
-0
lines changed

Essentials/src/main/java/com/earth2me/essentials/User.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -679,6 +679,9 @@ public boolean toggleAfk(final AfkStatusChangeEvent.Cause cause) {
679679

680680
@Override
681681
public boolean isHiddenFrom(Player player) {
682+
if (getBase() instanceof OfflinePlayer || player instanceof OfflinePlayer) {
683+
return true;
684+
}
682685
return !player.canSee(getBase());
683686
}
684687

0 commit comments

Comments
 (0)