Skip to content

[Feature Request] Support for Target Context in PAPI Placeholders #24

Description

@Lusiunas

Hi, I am a user of BetterHealthBar.

Currently, when using [papi:...] placeholders in a layout pattern, the values are always fetched based on the viewer (attacker) rather than the target entity (victim).

While internal variables like HP and Max HP correctly show the target's information, PAPI placeholders seem to lack the proper player context of the target entity during parsing.

I would like to request the following feature:

Please provide a way to fetch PAPI placeholders using the Target Entity's context.

Perhaps a new syntax like [papi:target_...] or ensuring the HealthBarCreateEvent passes the target entity as the player context to PlaceholderAPI.

This would allow users to display custom data from other plugins (like Skript, Level systems, or Mana plugins) that are specific to the entity being attacked.

Thank you for your hard work on this great plugin!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

help wantedExtra attention is needed

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions