You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there any way to add a method in Hologram to choose to hide or show the hologram to all players by default (ex: hologram.setVisibleByDefault(false)) ?
In my case, I want to create a hologram, hide it from all players (and those who will join later) and under certain conditions display it to some players.
Is this kind of functionality implementable?
Thanks :)
The text was updated successfully, but these errors were encountered:
Thanks to the latest commit you can do it!
When a player joins the server you simply add him to the excluded players.
So to show only certain players just remove them from the excluded players!
So if I want to hide the hologram from all players, when I create my hologram, I have to store the hologram list and get the list for each connected players and then add them to the "excludedPlayers" for each hologram?
Then when others players will join, I have to add it to excludePlayers?
I find this heavy....
Wouldn't it have been easier if the api had handled this behavior?
To have the option on the hologram by default according to a method directly on the hologram as on the example of my first message and to manage the show/hide afterwards?
If I had some freetime I would have made a PR to try but I'm a bit busy at the moment.
If it's not possible, I'll deal with it no worries!
Hello, great resource!
Is there any way to add a method in Hologram to choose to hide or show the hologram to all players by default (ex:
hologram.setVisibleByDefault(false)
) ?In my case, I want to create a hologram, hide it from all players (and those who will join later) and under certain conditions display it to some players.
Is this kind of functionality implementable?
Thanks :)
The text was updated successfully, but these errors were encountered: