mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-08-08 13:33:24 +00:00
Add option to prevent replying from vanished players (#3703)
Closes #2066
This commit is contained in:
parent
4d9a10147a
commit
bb43e8f7b6
8 changed files with 35 additions and 1 deletions
|
@ -567,6 +567,11 @@ public class User extends UserData implements Comparable<User>, IMessageRecipien
|
|||
return isAfk();
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isHiddenFrom(Player player) {
|
||||
return !player.canSee(getBase());
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isHidden() {
|
||||
return hidden;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue