PlayerHealth
PlayerHealth
The latest version (1.1.0) has support for TagAPI. This means that plugins that edit the nametag via TagAPI don't break the health display anymore. Other plugins editing the tag not via TagAPI might still break the display. For a list of plugins using TagAPI, click here.
Description
This simple plugin automaticly show the health of other players below their names, but only if you have the permission. If you don't have this permission, you won't see the health of other players.
Features
- Permission based display of health below name
- Very small and simple
- Support for TagAPI (since 1.1.0), display wont break as it would do before or with default minecraft scoreboard system.
- Possibility to automatically check for updates
Config
As you can see, the config is very simple:
# The name added behind the health number # (so "Health" will result in "20 Health" below the names) display_name: Health # Should the plugin check for updates? check_updates: true # With what interval should the plugin check for updates (in minutes) check_updates_interval: 180
Commands
- /playerhealth or /ph - Shows plugin information
- /playerhealth reload or /ph reload - Reloads the configuration and recalculates who has permission to see the healths
Permissions
- playerhealth.show - Permission to see the health of other players
- playerhealth.playerhealth - Permission to use /playerhealth or /ph
- playerhealth.reload - Permission to use /playerhealth reload
- playerhealth.* - All above permissions
Source
The source of this plugin is available at github.
Suggestions/Bugs
If you have any suggestion, please post it in the comments. If you found a bug, then create a ticket (top right of this page) and include any errors printed in the console.
If you like my work, feel free to donate something for my labour:
@Agentleader1
I did those commands and it didnt work the pugins isnt working as well i have added the perms
@C0lA_K1nG
got same error.
WARN "PlayerHealth v1.1.1" has registered a listener for org.kitteh.tag.PlayerReceiveNameTagEvent on method "public void denniss17.playerHealth.TagAPIListener.onNameTag(org.kitteh.tag.PlayerReceiveNameTagEvent)", but the event is Deprecated. "Server performance will be affected"; please notify the authors [Denniss17].
@Agentleader1
As I told earlier, this is indeed possible. However this is not configurable for each player: either eveyone sees it, or nobody. Next to this the default scoreboard breaks as soon as you mess around with displaynames, nametags etc. With this plugin it still works if the nametag is edited via TagAPI
You do realize this could be done with a thing called scoreboard? Just do this:
/scoreboard objectives add Health health Health
/scoreboard objectives setdisplay belowName Health
It doesn't really require any plugin to do this! It's really simple, try it. BTW, you need the Bukkit.* permission to use scoreboard! :P
@Rabrg
I know that bug sometimes occurs. I tried to fix it to force Bukkit to send the health every time a player respawns, but it doesn't seem to work always. I'll look into it.
@Fr33stylerhd
Can you please post any exceptions from the console?
@Rabrg
I have fixed it, now i use packet for this to work :D
It displays as 0 health while running with another plugin that uses TagAPI such as Battletags, and as @Fr33stylerhd said below it breaks after you reload the server
@denniss17
Sorry to say but the plugin break on the second reload for me, and seems to don't work with scoreboardstats
@denniss17
Actually yes it is per player using the scoreboard. And why would you not give it for everyplayer, permissions wouldn't really make sense. Doing this using the scoreboard will not slow down your server compared to adding a plugin to your server for a feature that is already in the game and can be done without any server mods.
@denniss17
ok, if you can that would be Amazing
@xH3LLRAIZ3Rx
Sorry for the late reaction I was a bit busy last days.
I looked into NametagEdit. The problem is that the core of NametagEdit works different than the core of this PlayerHealth. I think i can make PlayerHealth compatible with NametagEdit, but this would mean that most of the plugin would be rewritten.
When can i expect NametagEdit Support?
@zag09
It is true it is possible to show the health with the ingame scoreboard. But this is not per player and not permission based. This plugin gives a way to show the health automaticly to only a part of the players who have the right permission
Scoreboard already does this so this plugin is useless o.O
1st Downloaded
@denniss17
yup
@xH3LLRAIZ3Rx
The creator of nametagedit you mean?
@denniss17
Thx, dont expect the Creator to help in a way lol, he is really busy