zeshan321 / ActionHealth

ActionHealth is a highly configurable Minecraft plugin that utilizes the action bar to display entity health.
MIT License
41 stars 39 forks source link

placeholder {health} not correct for mob health, displays player health instead in actionbar #29

Closed LcorpOfficial closed 3 years ago

LcorpOfficial commented 3 years ago

need a placeholder in config.yml example that relates to health of mob rather than player's heath. max_health works correctly for max health however.

installed papi, & mvdw, tried multiple placeholders relating to heath on both sides but cannot return mob current health with any.

zeshan321 commented 3 years ago

Hey, are you asking for a placeholder that displays the attacking player (the player that gets the action health bar message) health?

LcorpOfficial commented 3 years ago

not quite; I'm looking for a placeholder that is assigned to the mob itself (for use with actionbar. currently {health} shows the health of yourself, the player. what you stated is what is currently delivered when using {health}.

zeshan321 commented 3 years ago

The {health} placeholder shows the health of the mob the player attacks: https://youtu.be/DXonJ6PtX04?t=128

zeshan321 commented 3 years ago

Most likely in your case you have another plugin interfering with ActionHealth or you just have a misunderstanding. ActionHealth was designed to show the health of the entity that the player attacks.

LcorpOfficial commented 3 years ago

perhaps an interference. I'm aware that {health} should show the entity that the player is attacking, however it shows the player's health instead. (the client that the actionbar is shown to)

zeshan321 commented 3 years ago

Could you send your plugin list? Lets see if we can figure out what plugin is messing with it. Also, try a fresh server with only ActionHealth and see if it works as expected for you.

LcorpOfficial commented 3 years ago

will do when I can grab a spare day to do so :) here's plugin list.

https://pastebin.com/HvddLUHv

ghost commented 3 years ago

The problem is this image

ghost commented 3 years ago

if you disable MVdWPlaceholderAPI that working fine ! But i need that plugin for other plugin ^^ so can you found a solution ? =D

zeshan321 commented 3 years ago

Add alterative placeholder for {health}, maybe {ahhealth}

zeshan321 commented 3 years ago

@n54b thanks! In the latest version that will be out soon

https://github.com/zeshan321/ActionHealth/blob/6c0a799198df995bec0c4925ace57e0e3028b647/config.yml#L9