Holographic Displays

Holographic Displays

3M Downloads

Show hologram to only 1 player not working.

ParadoxPixel opened this issue ยท 1 comments

commented

I'm trying to create a hologram and show it to only 1 player, but every player is able to see it.
Hologram hologram = HologramsAPI.createHologram(PVPPlugin.getInstance(), location); VisibilityManager manager = hologram.getVisibilityManager(); manager.showTo(player); manager.setVisibleByDefault(false); hologram.appendTextLine("Name: " + player.getDisplayName());
The player is defined in a for loop.
I got the code for the visibilitymanager directly from the wiki.

commented

Are you using ProtocolLib?