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

Support conditional judgment to enable each player to see different holograms #246

Open
3 tasks done
Noogear opened this issue Sep 25, 2024 · 2 comments
Open
3 tasks done

Comments

@Noogear
Copy link

Noogear commented Sep 25, 2024

Just making sure

  • I have read the wiki and made sure, this feature is not yet in the plugin.
  • I believe, that this feature is possible to implement.
  • I made sure, that this feature has not been requested yet.

Problem

I see that many NPC plugins related to packet sending can achieve that different players see different states, positions, and actions of NPCs. Holograms should also be able to implement similar functions, right? For example, make judgments based on permissions and papi to display different content to players. Of course, it would also be great if this function could be implemented using the API of DH.

Feature

Support conditional judgment to enable each player to see different holograms

Alternatives

Implement using the API of DH

@d0by1
Copy link
Member

d0by1 commented Sep 25, 2024

PlaceholderAPI is fully supported so displaying different content per-player is possible. You can also set permissions on lines or holograms to only make them visible for players with those permissions. What else do you need?

@Noogear
Copy link
Author

Noogear commented Sep 25, 2024

There might have been a problem with my previous expression. Let me explain in detail. What I mean is to decide whether to display part or all of the hologram based on the value of papi or whether there is this permission. As far as I know, it is currently not possible to achieve the situation where a certain hologram cannot be seen when there is this permission. By analogy, if the value of papi is equal to xxx, the hologram is displayed; otherwise, it is not displayed.

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

No branches or pull requests

2 participants