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.