Action Bar Health icon

Action Bar Health -----

ActionHealth is a health plugin that utilizes the action bar to display player and mob health.




Supports 1.20
----------, Jun 23, 2023

Now supports 1.19
----------, Jun 12, 2022

- Requires Java 16
- Updated to support MythicMobs v5.0.2

Version v3.5.7 or greater:
  • Java 16 or greater
Versions below v3.5.7:
  • Java 8 or greater
You can download a specific version from the Version History tab or GitHub.
----------, Mar 26, 2022

----------, Dec 1, 2021

  • Removed the usage of legacy materials to specify the API version (#38) thanks @syldium
----------, Jun 21, 2021

  • Added v1_17_R1 support
  • Added bStats
----------, Jun 12, 2021

Added alterative placeholders in case being overridden. ( #29)
Added null check before getting effect type name. ( #35)
----------, Jun 9, 2021

1.16.4 compatibility. Thanks @Aurelien30000
----------, Nov 4, 2020

1.16.2 support. Thanks to @Kikisito for the pull request ( #18).
----------, Aug 12, 2020

Placeholders:
Placeholders now can retrieve both the receiver and attacked player. Below is an example of:
  • If I attack a player show the health message + the attacked players exp level.
  • If I attack a non-player it just shows the health message. + my (the receiver) exp level.
Code (Text):
# The message the player is sent.
# {name} shows the name of the mob or player.
# {health} shows current health of the mob or player.
# {maxhealth} shows the max health of the mob or player.
# {usestyle} will use the defined chars.
# {displayname} will use player/mob custom name.
# {opponentlastdamage} the amount of damage the enemy last received.
# {percenthealth} displays the percentage of health left.
#
# For PlaceholderAPI or MVdWPlaceholderAPI:
# By default placeholders will be retrieved as the attacking player.
# Prefix with 'ATTACKEDPLAYER_' to get the placeholders as the attacked player
# i.e %player_exp% would be %ATTACKEDPLAYER_player_exp%.
Health Message: '&7&l{name}: {usestyle} %ATTACKEDPLAYER_player_exp%'

# If set empty it will default to the one above.
# This message is sent to all non player entities.
# All the placeholders from above work here also.
Non Player Message: '&7&l{name}: {usestyle} %player_exp%'
WorldGuard:
This update should fix the WorldGuard error. If you are still having issues please make sure you have the latest WorldGuard and WorldEdit. If you are still having issues messaging me.

Limit Health:
Note: This update is optional. If updating everything should still work as expected.

New configuration was added to be able to customize the limit health logic:

Code (Text):
# Limits the health style to a certain amount of symbols. Static limit (-1 to disable)
# Limit health WILL accurately still display the entities health.
Limit Health: 10

# If 'Limit Health' is set to -1. With 'Upper Limit Health' you can trigger 'Limit Health' logic to prevent 'Use Style' going off screen'
# '40 -> 10' = If health over 40, use limit health 10. Leave empty to disable
Upper Limit Health: "40 -> 10"
If you have any questions, feel free to message me directly.
----------, Aug 6, 2020

  • Added 1.16.1 support. Thanks to Kikisito.
  • Added '{percenthealth}' which displays the percentage of health left.
----------, Jun 26, 2020

New action event 'damage':
A new action event 'damage' has been added. This action event allows you to trigger action bar health message if a tagged entity gets damaged.

The 'damage' event supports the type 'any' or many as you want damage causes. 'Any' is useful if you want the health bar to appear when an entity receives damage from non-player hits like lava, falling, potions etc..

Config example:
Code (Text):
# If enabled, when a player gets into combat they will be tagged for the configurable amount of time.
# When the enemy triggers an action the provided message will be sent.
# Supports all placeholders from above.
# Supported events: CONSUME, RIGHTCLICK, LEFTCLICK, SWAP, DAMAGE
Action:
  Enabled: true
  # In seconds
  TagLength: 20
  # Amount of entities a player can tag during combat. -1 for unlimited
  TagAmount: 2
  Events:
    DAMAGE:
      ANY: '&7&l{name}: {usestyle}'
      # Supports DamageCause if 'ANY' not being used
      #LAVA: '&4On fire!'
      #ENTITY_SWEEP_ATTACK: '&7You swept them!'
Action system notes:
The action system can be used if you want shared action health bars among many players fighting the same mob.
----------, Apr 7, 2020

Sorry for the back to back updates. :)

Added 'CheckTicks': This allows you to modify how often
to check if player is looking at an entity. Currently, i'm experimenting with the value 0. Seems to provide a better experience but increase if lagging, maybe to 10 or 20. The old value was 20.

Added 'Whitelist': If enabled (by adding names), action health will only appear for white listed entities.

Config changes if you'd like to modify these values:
Code (Text):
# Whitelist by entity name or entity display name.
# Also supports MythicMobs using the internal name.
Whitelist: []

LookValues:
  # How often (in ticks) to check if player is looking at an entity. Increase if lagging, maybe to 10 or 20.
  CheckTicks: 0
  # If the dot product is positive, the target is in front
  Dot: 0
  # Tolerance of the line calculation
  Tolerance: 4
----------, Apr 5, 2020

Configurable 'Show On Look' values. If you would like to modify the default values add the following to existing config:

Code (Text):
LookValues:
  # If the dot product is positive, the target is in front
  Dot: 0
  # Tolerance of the line calculation
  Tolerance: 4
----------, Apr 5, 2020

1.15 Support
----------, Dec 14, 2019

  • Fixed getNearbyEntities async error
  • Fixed action system dealing with potions
----------, Sep 20, 2019

  • New placeholder {opponentlastdamage} displays the amount of damage the enemy last received.
  • Fixed npc/player setting
  • Added action system
Code (Text):
# If enabled, when a player gets into combat they will be tagged for the configurable amount of time.
# When the enemy triggers an action the provided message will be sent.
# Supports all placeholders from above.
# Supported events: CONSUME, RIGHTCLICK, LEFTCLICK, SWAP
Action:
  Enabled: true
  # In seconds
  TagLength: 20
  # Amount of players a player can tag during combat. -1 for unlimited
  TagAmount: 2
  Events:
    CONSUME:
      GOLDEN_APPLE: '&7&l{name} consumed &cgolden apple&7&l!'
      REGENERATION_POTION: '&7&l{name} consumed &cregen potion&7&l!'
    RIGHTCLICK:
      ENDER_PEARL: '&7&l{name} used &cender pearl&7&l!'
    SWAP:
      ENDER_PEARL: '&7&l{name} swapped to &cender pearls&7&l. {usestyle}&7&l'
      POTION: '&7&l{name} swapped to &cpotion&7&l. {usestyle}&7&l'
Enjoy! :)
----------, Aug 10, 2019

  • Added HealthSendEvent API
  • Added option to disable showing health on MiniaturePets
  • Fixed npc/player setting (nvm, fixed in upcoming update.)
  • Support of client side translations using LanguageUtils was added by @stan60250
Enjoy! :)
----------, Aug 8, 2019

You can now blacklist MythicMobs mobs by their internal names.

Enjoy! :)
----------, Aug 6, 2019

- Fixed "Use Permission" not working.
- Added option to disable showing NPC health.
- Fixed "Show On Look" not checking if entities match requirements.

I'd appreciate if servers that use custom translations share them with me, so I can share them with others! For users that do, I will tag them on Spigot and display their server IP.

Enjoy! :)
----------, Aug 5, 2019

- Added mcMMO health bar support

I'd appreciate if servers that use custom translations share them with me, so I can share them with others! For users that do, I will tag them on Spigot and display their server IP.

Enjoy! :)
----------, Aug 4, 2019

- Refactored code
- Added support for both WG 6/7
- Fixed 'Show Player' setting toggle not working
- Added ability to change 'Delay Tick' amount

I'd appreciate if servers that use custom translations share them with me, so I can share them with others! For users that do, I will tag them on Spigot and display their server IP.

Enjoy! :)
----------, Aug 4, 2019

Fixed error when 'on look' is enabled.
----------, Jun 7, 2019


1.14 support.
----------, Apr 28, 2019

Fixed error when using 'Show On Look'.
----------, Feb 8, 2019

Warning: This build only supports WorldGuard 7+.

Previous build:
http://bit.ly/2HXB0ZD
----------, Feb 6, 2019

Should support all 1.13 versions from now on.
----------, Aug 30, 2018

Update only needed if you use the "Show On Look" feature or want to use relational placeholders. Fixed an error where it tries to show the health bar for a teleported entity.

The "Show On Look" feature shows the health of the entity that the player is looking at. You can enable it in the config.

You now can use clip's PlaceholderAPI relational placeholders.
----------, Aug 3, 2018

- Added 1.13 support
- New config option to allow separate bars for the previous placeholders update. Config update required if you want to use this feature, so it's optional.
Added to config:
Code (Text):
# If set empty it will default to the one above.
# This message is sent to all non player entities.
# All the placeholders from above work here also.
Non Player Message: ''
Default update config can be found here.
----------, Jul 24, 2018

Added support for PlaceholderAPI. MVdWPlaceholderAPI was supported just not documented.
----------, Jul 13, 2018

Fixed error caused by attacking combat tag npcs.
----------, Jun 21, 2018

Update:
- Added option to limit health style symbols
- Using reflection for latest version

Config:
This update does not require you to update your config. Although, if you want to change the amount of symbols you are required to update the config. If you do not update the config it will default to 10 symbols.

Change are from:
Code (Text):
# When set to true and style health is enabled this will limit the health symbols to 10.
Limit Health: true
To:
Code (Text):
# Limits the health style to a certain amount of symbols.
Limit Health: 10
----------, Jul 25, 2017

- Forgot to remove debug message. Sorry!
- Added spectator to default config.
----------, Jun 23, 2017

Config update not required but recommended.

Added the following config options:
Code (Text):
# Check if player can see entity before sending health.
Can See: true

# Hide if entity is in spectator mode.
Spectator Mode: true

# Hide action health if entity has invisible potion on.
Invisible Potion: true
Update config can be retrieved by deleting the current one or getting it from GitHub: https://github.com/zeshan321/ActionHealth/
----------, Jun 22, 2017

  • Added support for pre 1.12 version
  • Added '{displayname}' placeholder. Supports player nicks/custom names. It defaults back to '{name}' if the player does not have a custom name.
----------, May 16, 2017

- Improved look detection for the look option.
- Fixed showing decimals again (sorry about that).
- Don't show health for armor stands.
----------, Mar 26, 2017

Added:
  • The ability to customize the message when you use /actionhealth toggle.
Fixed:
  • Check if entity is a npc when look is enabled.
  • Showing health message when damaging self.
Config update is not required as long as you updated to the last version but is required if you want to change the toggle message.
----------, Mar 24, 2017

Bug fixes:
  • Showing health message when player hurts itself.

New features:
  • Added an option to blacklist certain entities from being shown in the health action bar.
  • Added option to show the health action bar when a player is looking at an entity.
  • Added the ability to customize the message when using /actionhealth toggle.

Make sure to update configs.
----------, Mar 24, 2017

Forgot debug
----------, Mar 23, 2017

Display half health icon more accurately. Should work properly now.
----------, Mar 23, 2017

Fixed:
  • Error when displaying health
  • Check if entity is dead before displaying health
----------, Mar 21, 2017

Fixed:
  • Delay option not getting the right health
  • Showing negative health number when the entity dies
  • Showing decimals
----------, Mar 20, 2017

This version is recommended as it has performance improvements, bug fixes, and new features. It's recommend that you update your config.

Update:
  • Rewrote the plugin
  • Source code is now available
  • '{usestyle}' works correctly and with half heart support now
  • 'Limit Health' has been removed as its enabled by default
  • Added 'Remember Toggle' option. It saves players /actionhealth toggle state.
----------, Mar 20, 2017

Added option to disable ActionHealth in certain WorldGuard regions. ActionHealth does not require WorldGuard. It is optional. Add the following to your config to add support:

Code (Text):
# ActionHealth will be disabled for any region names added below. Case sensitive!
Disabled regions:
- randomregion
----------, Sep 29, 2016

- Fixed error when citizens NPC attacks a entity.
----------, Jul 16, 2016

Added support for 1.10
----------, Jun 10, 2016

Added support for 1.9.4
----------, May 13, 2016

Added support for 1.9.2!
----------, Mar 31, 2016

Added option to strip player colors from the name.

Code (Text):
# Strip Name.
Strip Name: false
----------, Mar 26, 2016

Limit Health is a new option that has been added to the config of ActionHealth. This option is useful for servers that have custom mob health (i.e 100 health).

Code (Text):
# When set to true and style health is enabled this will limit the health symbols to 10.
# Currently not supporting 'Half Health Icon'
Limit Health: false
Make sure to update your configs!

Caveats: Current not supporting 'Half Health Icon'
----------, Mar 9, 2016

Now supports:
  • 1.9
  • 1.8.8
  • 1.8.7
  • 1.8.6
  • 1.8.3
  • 1.8
  • 1.7.10 (#1649)
----------, Mar 1, 2016

- Changed event priority.
----------, Aug 11, 2015

- Uploaded wrong jar.
----------, Aug 5, 2015

- Compiled in Java 7.
----------, Aug 3, 2015

- Added support for 1.8.8.
----------, Aug 3, 2015

Added support for 1.8.7.
----------, Jun 8, 2015

Added support for 1.8.6
----------, May 25, 2015

Added option to not display actionhealth messages in PvP denied regions.
----------, Apr 2, 2015

Added option to disable ActionHealth in certain worlds:


Code (Text):
# ActionHealth will be disabled for any world names added below. Case sensitive!
Disabled worlds:
- randomworld
----------, Apr 2, 2015

Wrong version.
----------, Mar 30, 2015

Fixed permissions issue with /actionhealth toggle
----------, Mar 30, 2015

Added option to display a translated name rather then the english version.


Code (Text):
# Set names
Name Change: true
Name:
- Cow = Kuh
----------, Mar 18, 2015

Added support for:
  • 1.8.3
  • 1.8
  • 1.7.10 (#1649)
Added 2 variables that were requested:

  • {damager_health} get the current health of the damager
  • {damager_max} get the max health of the damager
----------, Mar 16, 2015

Added /Actionhealth toggle
----------, Mar 14, 2015

Updated to 1.8.3. No longer supports protocol hack,
----------, Mar 14, 2015

Fixed symbols not working properly with players.
----------, Feb 12, 2015

Action bar Health now allows you to create your own health style. Example:

[​IMG]

You can use unicode. Symbols list:
http://www.w3schools.com/charsets/ref_utf_symbols.asp

If you want to use the style system you need to add this variable '{usestyle}'.

Example:
Health Message: '&6&l{name}: {usestyle}'

Example of style health:

Code (Text):
# Style Health
Full Health Icon: "&4\u2764"
Half Health Icon: "&c\u2764"
Empty Health Icon: "&7\u2764"
----------, Feb 8, 2015

It should no longer show armorstand health.

Added Delay Message: true for accurate health if using plugins like ItemLoreStats.
----------, Jan 17, 2015

Fixed some errors.
----------, Jan 6, 2015

This version allows you configure what sends players the health messages.

Code (Text):
# If set to false player will not see health messages from mobs.

Show Mob: true

# If set to false player will not see health messages when pvping players.

Show Player: true
Make sure to regenerate you configs!
----------, Dec 30, 2014

Hopefully more accurate health displayed.
----------, Dec 30, 2014

Now supports both 1.8 and the protocol hack. Will only work on protocol hack versions that have Action Bar support.
----------, Dec 27, 2014

Compiled in Java 7.
----------, Dec 26, 2014

Resource Information
Author:
----------
Total Downloads: 658,157
First Release: Dec 26, 2014
Last Update: Jun 23, 2023
Category: ---------------
All-Time Rating:
137 ratings
Version -----
Released: --------------------
Downloads: ------
Version Rating:
----------------------
-- ratings