Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting a hologram #21

Closed
Enoughsdv opened this issue Nov 18, 2022 · 3 comments
Closed

Getting a hologram #21

Enoughsdv opened this issue Nov 18, 2022 · 3 comments
Labels
enhancement New feature or request

Comments

@Enoughsdv
Copy link

How can I get some hologram, I was looking at the library code and I can't find any method to get this unless I modify it.

ex:

public void moveHologram(Player player, ???? ???) {
    hologramPool.getHologram(???).teleport(player.getLocation());
}
@LowScarlet
Copy link

same issue here, you got it?

@unldenis
Copy link
Owner

At creation you can save them anywhere.

Or do you prefer to make public the collection of holograms from the pool?

@unldenis unldenis added the enhancement New feature or request label Apr 25, 2023
@Enoughsdv
Copy link
Author

Oh yes, I saw that with the latest update you can do HologramPool#getHolograms, in order to get the holograms I just got the location of each hologram by comparing it to the ones in my config file that I wanted to get.

That is a possible solution, I think there are several, for example getting the name (uuid) of the hologram and delete it from the HologramPool.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants