MobHealth
Mob Health
This simple but invaluable plugin lets you know the damage you just caused to a mob (including other players), and how much health it has left.
Now with ActionBars!
If you have 1.8 bukkit/spigot then you can now enable actionbars by adding useActionBar: true to your config (or set to false to disable).
-
Mob Health has a range of useful options including:
- Control over how messages are shown
- When messages are shown
- When messages are *not* shown (a useful feature!)
- Exactly what is displayed - including your own custom messages...
Current Release Version: 9.1.0
Updater Information
Note that unless you edit MobHealth configuration it will automatically update as new versions are approved by the Bukkit team.
You can edit config.yml
in the /plugins/MobHealth/
folder you can find the following settings.
updateCheck true
- Show notification of available updates.
doUpdate true
- Update MobHealth automatically when new download is available.
Change doUpdate to false to stop any file download, and updateCheck to false to stop notices about new versions in your startup log.
Got API?
MobHealth now has 100% more API included!
You can trigger damage notifications, if your plugin adds skills or spells for example. And far more usefully - you can query MobHealth to get the current health and max health of any Mob, regardless of which plugin is responsible for tracking it.
Think of it as Vault for mob health levels ;) You code for one plugin - I sort out the mess behind the scenes.
See the API page for more info.
NEW healthbars!!
As frequently requested, MobHealth can now display health bars above Mobs, and a health counter for players.
PLEASE NOTE: If enabled - these bars show above ALL players / mobs, regardless of any toggle or permissions settings.
Enable this feature with the following flags in config:
showPlayerHeadHealth: true
Enables health counter display below player names.
usePercentForPlayer: true
Changes health counter from HP to a percentage of health left (recommended).
showMobHeadHealth: true
Enable health bars for all mobs.
useBarForMobs: true
If true, use a health bar in format of [||||||||||] if false, show in format of "10/20"
Compatible Plugins
EpicBossRecoded
You shouted for it - here it is, Epic Boss support.
Thanks to ThaH3lper for adding in an entire API for MobHealth.
Spout
If Spout-plugin is installed and the client uses SpoutCraft (and disableSpout is on its default false setting) then notification will be shown with the achievement notification (as seen above).
ZombieMod
Exclusive to Imagicraft's Zombie Apocalypse RP (Zarp) server, ZombieMod creates several variaties of Zombie to terrorise players trying to survive in this post-apocalyptic server.
SimpleNotice
MobHealth now supports the Client Mod simple notice. Lets you show the messages elsewhere so your chat is spam free.
Thanks to FeildMaster for the pull request :)
Heroes
Heroes health and levelled up HP's are reported correctly as are mobs whose health levels have been adjusted in the config. Use of a Heroes skill will trigger a notification when it damages.
Mobs
Mobs adjustments to health are now tracked and reported in MobHealth.
Thanks to coldandtired for adding in MaxHealth and an API for me :)
Mob Arena
Bosses in a currently running Mob Arena report correct health and max-health. As do waves with a modified reduced health.
Thanks to garbagemule for adding MaxHealth to mob area for me.
LikeABoss/Corruption
MobHealth detects wandering bosses and correctly reports their health and name.
Thanks to bm01 and Erackron for integration help.
Monster Apocalypse (6.0b+)
If Monster Apocalypse is set to handle mob's health then these values are used for MobHealth.
Thanks to blainicus for answering my queries.
Video
See MobHealth in action here...
Thanks to WoopaGaming for the video.
Commands
/MobHealth reload
Reloads current configuration.
/MobHealth toggle [player]
Toggle notifications. [player] is ignored via chat and mandatory via the console.
Configuration
See the configuration page for full details.
Permissions
See the permissions page for full details.
Source Code
https:github.com/Sablednah/MobHealth
Stats Collection
Like many bukkit plugins, Mobhealth utilises Hidendra's plugin metrics system, which means that the following information is collected and sent to mcstats.org:
- A unique identifier
- The server's version of Java
- Whether the server is in offline or online mode
- The plugin's version
- The server's version
- The OS version/name and architecture
- The core count for the CPU
- The number of players online
- The Metrics version
- The number of damage notices displayed (but not their content)
Opting out of this service can be done by editing plugins/Plugin Metrics/config.yml and changing opt-out to true.
Changelog
9.0.0: New ActionBar notifications.
8.3.0: Adds Rabbit, Endermite and Guardian mobs
8.2.2: Added fallback code for potential missing new methods.
8.2.1: Rollback gettextresource to get resources
8.2.0: Filter rogue &f colour code prefix's. Add scoreboard event (so it can be cancelled to preserve scoreboards).
8.0.1: Cleanup - removed unused class, update metrics to V7
8.0.0: Reworked Heroes integration. 1.7.2 compatibility fixes.
Download
Github no longer allows a "downloads" section, so I no longer mirror files there. If you'd like to test beta/dev versions follow me on twitter and ask there! But understand such files would not yet be approved by BukkitDev staff.
Known Bugs/Conflicts
- Plugins that alter mobs health levels usually return false health levels.
The plugins listed above are supported.
Donations
Donations of any amount are, of course appreciated :)
Contributions go towards maintaining my development server to encourage continued development, MobHealth is solo coded by me, and supporting so many other plugin takes a fair bit of time. So if you think that time is worth something then Hit the dontae button in the top right of this page :)
@Sk8Sanctified Yeah, Spell damage is on the to-do list. Bukkit added MAGIC as a damage cause to the latest RB - so once plugins start using it, it should all be simpler(well simpler for me - not for them having to rewrite - lol).
Would you mind doing me a huge favour and changing the setting back on for a moment? (you can use '/mobhealth reload' so no need to restart server) Then I'll know if the event change fixed it - or if you've just turned of the conflicting code? If you type a swear and then say eleven that'll test both parts of it ;)
Hello, I'm the person that recommended adding the toggle feature. Even with usepermissions to false, whenever they try to use /mobhealth toggle it says they don't have permission.
Ok, well either the update, or change that setting fixed it.
Have you ever heard of the plugin called magicspells? Getting this plugin to support spell damage as well would be amazing
ah yes I did, I'll see if it fixes with it off.
@Sk8Sanctified Looking now.
I'm just switching over the the new 1.1-R1 event system. So hopefully that'll fix it anyway. Do you have enableEasterEggs set to true? That's the only function that interferes with other plugins chat messages...
I'm having an issue with this plugin conflicting with towny chat... I know... I hate towny chat... Totally screwed up my hero chat... Anyways, heres the error in the log
@Damimad
Custom messages for eggs/snowballs now in place. And a /mobhealth toggle command has been added.
You can also use mobhealth toggle <playername> at the console.
@FRLanc
Have added options now to limit notification only to hits on players if needed.
@FRLanc It does do players ;)
Or did you mean only players?
Can you make the same, but for players?
wow ure great!!! :D
@VenetianScorn I've PM's Likeaboss's author to see if I can hook onto something for the 'real' info. :)
I think the problem with mcmmo is that my plugin waits 1 tick for the event to resolve and get the Mob's health after the event has resolved., whereas mcmmo does it immediately. Result is my notification triggers directly after and wipes it out.
I'll look at the spout API to see if I can see if another notification is being displayed or something.
Thx a lot for this awsome plugin! works perfect with supernaturals!!
i found two conflicts though you can look at if you want:
with Like a boss Likeaboss, basically the same problem as Beatkidz with Hero: shows bosses health at 20 points , stays at 20/20 and shows 0 damage all along until the boss suddenly dies.
with mcmmo: on lvl up with weaponskills, you dont get the mcmmo lvlup notification (spout) but only the damage notification from Mobhealth, as they probably try to appear at exact the same time. Would it be possible to put some kind of priority to notifications?
both are a bit confusing for players
@MasterRokon
If they have spoutcraft then they will get a new notification everytime they hit a Mob. However each one replaces the last so its not bad at all with spout.
With conventional chat - yes I'm afraid it does rather spam the chat log. It only notifies the player that did the hitting - so it doesn't spam indiscriminately.
I'm working on the toggle option mentioned bellow - so that may help for people who dislike it.
will this spam the chatlog at all? and if they are using spoutcraft, will this end up spamming their upper-right corner with lest say a wood sword and they are simply killing a monster will -2Damage -Pig: 8/10 -2Damage -pig: 6/10 Now i havent used the plugin yet so i dont know if this is how it is formatted, but i just dont wanna have my players chat spammed with this.
@MrMarkShark As long as the player is using Spoutcraft (http://dev.bukkit.org/client-mods/spoutcraft/) and the server is Spout enabled (http://dev.bukkit.org/server-mods/spout/) then notifications will appear as achievements.
Neither Spout nor Spoutcraft support 1.1 yet tho...
how do I make it appear as an achievement with spout?
@Damimad
Oh and as for items - its fairly for me to capture projectile type - so custom text for eggs is doable.
As eggs and snowballs do little or no damage - I can see a case for a special text for them... "Snowball fight!" "You caught a wild Zombie" and so on :)
@Damimad So individual users can turn if off? I'll have a look see what I can do.
In the meantime tell them Spout is less spammy - lol
Seriously tho - you could for now enable
Give your default permissions group this node
and when people ask for it disable by adding this node to the player...
At least till I make it opt-outable by players :)
Could you please make it toggle-able? My members love it, but some hate it, some says it spams too much, and etc. I would really appreciate it, thanks.
Also, would it be possible to display a different message for a certain or certain items? Whenever they shoot eggs it catches them in their spawn egg, like pokemon! A different message for objects like that would be cool, but I don't think it'd benefit many people.