How to hide a player from an other?

I’m porting a plugin from Bukkit and I need to hide a specific player from an other specific player.

Is there any alternative to Bukkit’s Player.hidePlayer(Player) and Bukkit’s Player.showPlayer(Player)?

I noticed that the Entity interface contains a canSee(Entity) method that checks if the entity has a VANISH key but that key will make the entity invisible to everybody and not just to a player…

Unfortunately there is not an equivalent (yet).

Oh baby where’s the PR??? XD

1 Like

Thanks for the link!

1 Like