Hologram Visibility Manager not working at all!
MikyPro opened this issue ยท 1 comments
I'm using PaperSpigot 1.8.8 and i have the latest version of ProtocolLib, i'm setting the visibility to only one player using the tutorial given in the github's wiki:
`
infoHologram = HologramsAPI.createHologram(plugin, location);
infoHologram.getVisibilityManager().showTo(player);
infoHologram.getVisibilityManager().setVisibleByDefault(false);
//Adding the lines here`
But the hologram is visible to all the online players, i tried to avoid the setVisibleByDefault(boolean) method by looping trough all the players and hide the hologram for each player that is not "player variable" and it worked but it is so inefficient. Some help?
This issue has been automatically closed because it doesn't follow the issue template.
Please open a new issue and make sure to follow the provided template, fill out the sections without modifying or deleting the existing text.
Templates are necessary to manage the project efficiently, as basic questions don't need to be asked again each time.