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 :)
Would you consider adding support for Monster Apocalypse? A truly awesome mod for making surviving the nights harder og making it a zombie hell :)
It should have an health api as far as i can see.
@Beatkidz Yeah - im seing that with Heroes too.
Seams OK without it. Trying to get a fix sorted now.
Not 100% sure if it worked before. But enchanted Weapons don't display proper damage
@SSile Thanks, and yeah I'd got the 1.4.6 notification :)
You're right this is exactly why I put "initial" support. It's looking like the new event system has played with the trigger order so now I trigger after heroes has played with the numbers.
Gonna rewrite it a bit to try to make such timing issues irrelevant, as I'm sure they'll keep changing...
Also - is pex working ok now?
@genesis_aix Hmm tick/fire damage has a source of environmental so your right - i'd have to somehow flag an entity as hit and report damage for X seconds...
It is a far bit of work - but i'll tag it on the list of things to add in the future :)
Just a heads up, I'm sure you probably already are aware of Heroes having being updated but:
As of the new heroes (1.4.6)
Players attacking mobs get correct reports, however on the mobs death it displays 200 damage to the mob on it's death.
Players attacking players doesn't show HP correctly or damage. The players health will be 20, and players attacking do just 1 damage, though it will lower the total as normal.
I know the heroes support is very initial, I just thought this might be helpful.
Also, cheers again for such a top plugin.
@SableDnah Appreciate your work on this plugin.
It this possible to do; record and display all damage a mob recieves X seconds after beeing attacked from a player?
Spesifically; Im using http://dev.bukkit.org/server-mods/flamingarrows/ and it only displays the impact damage, not the tick/fire damage that follows.
Would that be much work?
@legend1758 Ahh - now I remember why I thought of the need for a profanity filter...
If you have a problem you should really raise a ticket, and explain in a lot more detail. What version of Bukkit do you have, what version of MobHealth? (and don't say 'latest' as that changes frequently).
What 'folder' doesn't open? Are you trying to use the Spout notification? If so what version of Spout plugin and SpoutCraft? What other plugins do you have? Is the player your are testing an op? Have you enable permissions? What messages do you have in the console?
As you can see you really need to be more specific. Several thousand people are using this without reporting a problem, so I'm sure we can get it working for you too.
i install the plugin reload server and the folder dosnt open and the message dosnt show up, kinda pissed since this is the third time i trying it.
Thank you so much for heroes support! I love you!
@kahlilnc Currently a blank killed message will just cause a blank notification....
Did you want an option to disable the killed messages?
chatKilledMessage: ''
if killed message is blank nothing should show up? :(
@m1zark
If you don't have spoutplugin on your server and running spoutcraft the damage will still show, just in chat instead of the clean achievement style popup you get through using spout
@SableDnah
Thanks SableDnah, works like a charm :D
So will I need the Spout client to see the popup display or do I just need to have spout on my server?
@oldjollysanta
Have done an interim fix for you. 3.3 should have what you need :)
@SableDnah
wow you are awesome! thanks for the quick reply and the upcoming fix :)
@oldjollysanta I found the bug - looks like the language filter part isn't within the check for the easterEggs flag. It should have listened to the edits of profanities tho :/
Anyways - 3.3 will have these 'features' split out into a new plugin - so they won't bother you anymore once I do that :)
3.3 will be out as soon as MobArena release a new build.
@dasbreenThanks for the heads up.
I use onWave to get the boss's max health at the start, and then everything else via MobArenaHandler(). So should only need some minor changes :)
I think now I'm doing dev builds, I better change that version check from == to >= :)
@SableDnah
Hey, I've been using this for a while now (and it's awesome with Spout!), and MobArena for even longer. I've just recently started using @garbagemule's dev builds, which he links in the topic of #mobarena @ irc.esper.net, and I get an error from this on Enable, since he did away with the MobArenaListener class. I don't expect you to support Dev builds of stuff, but I figured I'd give you a heads up anyways :)
I import his new events from this line (which you set up the same as the regular 'new' event system):
At the moment I think he only has Arena start & end, new wave, and Player join/death/leave. I don't know if he'd be against adding in more events, you'd have to ask. He added those ones because I asked him to :D
Edit: I'm also seeing this in the console after start-up: