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 :)
How do i check my version? add /mobhealth version?
hello,
How i can enable bar health for players ?
Hello. Can you add option for disabling damage spam in chat? Thanks.
@sableDnah
Thanks for the reply. I am waiting on a few mods and plugins before updating. BTW i knew 7.1.0 was for 1.6.2 hence the question. Trouble is when i re-downloaded the 6.1.4, i delete both the mobhealth plugin and the mobhealth folder in the plugins folder. So i still don't know how it gets the 1.6.2 version on the first restart of the server. I also tried disabling the update function in the config.yml and deleted the current plugin and copied a backup, of the fresh download. and it still shows this error. That is why I thought there might be an issue with the version being downloaded initially. Just thought there might be an issue you need to know about. But thank you:D
@Linrox
OK - I see your still running 1.5.2 (org.bukkit.craftbukkit.v1_5_R3).
MobHealth 7.0.0+ is for 1.6.2+ only. Mojang changed all the health and damage handling in the code from integers to doubles in the code, and as MobHealth is *all* about health and damage it's changed the code alot.
As for how you got 7.1.0 - my guess would be the auto updater(?)... make sure to edit config.yml and set 'doUpdate' to disable if you're sticking with 1.5.2.
Firstly, Love this plugin, epic stuff :D I am getting a strange error with MobHealth.
The problem is it says on the first line mobhealth v7.1.0 but i don't have this version installed. I am using MobHealth V6.1.4 as downloaded. BTW I am using MCPC 1.5.2 + Forge
Is there a problem with the download link, maybe giving the latest version instead of the intended version? I tried redownloading v6.1.4 and it still says 7.1.0 in the error
Hope some one can answer this soon, Thanks
UPDATE: I tried an earlier version for 1.5.2 (v6.1.3) and the problem does not occur. However I would still like to understand as a server admin why this occured. Thanks
@Zeta656
Thanks Zeta
@l10n27
Erm was that a question? confused~
Hi use the Mob Manager, you support this plugin or works in this
Just like to point out that with mobhealth it has been the only thing to literally fix the health bar and epicbossmod health notifications so far and you guys should really look at Epicbossmod for the issues not mobhealth. I've had endless problems setting up epicbossmod but make sure you delete or disable ALL health plugins and just use this. It was the only way to fix it for me.
EpicBossRecoded version 1.3.2
@merlin4life
What version of EpicBoss are you using?
Any ETA for Heroes working version?
Hello. I sometimes get message "<3<3<3<3 recive 3 damage. x/y hearts." But sometimes i get "Skeleton recive 3 damage. x/y hearts." It's a bug? Can I repair this somehow?
Get this alot in console
2013-08-09 22:19:40 [WARNING] [MobHealth] Task #2927706 for MobHealth v7.0.2 generated an exception java.lang.NullPointerException at me.ThaH3lper.com.Api.Api.getMaxHealth(Api.java:33) at me.sablednah.MobHealth.API.MobHealthAPI.getMobMaxHealth(MobHealthAPI.java:351) at me.sablednah.MobHealth.API.MobHealthAPI.showBar(MobHealthAPI.java:485) at me.sablednah.MobHealth.ServerDamageEntityListener$ScheduledshowBar.run(ServerDamageEntityListener.java:218) at org.bukkit.craftbukkit.v1_6_R2.scheduler.CraftTask.run(CraftTask.java:67) at org.bukkit.craftbukkit.v1_6_R2.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:345) at net.minecraft.server.v1_6_R2.MinecraftServer.t(MinecraftServer.java:518) at net.minecraft.server.v1_6_R2.DedicatedServer.t(DedicatedServer.java:239) at net.minecraft.server.v1_6_R2.MinecraftServer.s(MinecraftServer.java:481) at net.minecraft.server.v1_6_R2.MinecraftServer.run(MinecraftServer.java:413) at net.minecraft.server.v1_6_R2.ThreadServerApplication.run(SourceFile:582) 2013-08-09 22:19:40 [WARNING] [MobHealth] Task #2927707 for MobHealth v7.0.2 generated an exception java.lang.NullPointerException at me.ThaH3lper.com.Api.Api.getMaxHealth(Api.java:33) at me.sablednah.MobHealth.API.MobHealthAPI.getMobMaxHealth(MobHealthAPI.java:351) at me.sablednah.MobHealth.API.MobHealthAPI.showBar(MobHealthAPI.java:485) at me.sablednah.MobHealth.ServerDamageEntityListener$ScheduledshowBar.run(ServerDamageEntityListener.java:218) at org.bukkit.craftbukkit.v1_6_R2.scheduler.CraftTask.run(CraftTask.java:67) at org.bukkit.craftbukkit.v1_6_R2.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:345) at net.minecraft.server.v1_6_R2.MinecraftServer.t(MinecraftServer.java:518) at net.minecraft.server.v1_6_R2.DedicatedServer.t(DedicatedServer.java:239) at net.minecraft.server.v1_6_R2.MinecraftServer.s(MinecraftServer.java:481) at net.minecraft.server.v1_6_R2.MinecraftServer.run(MinecraftServer.java:413) at net.minecraft.server.v1_6_R2.ThreadServerApplication.run(SourceFile:582)
@Marwzoor
I see they finally got a build released, will do.
Hey!
You should update to the new heroes version! I am getting errors on SkillDamageEvent since it now uses doubles instead of Integers!
Just build against the latest heroes version and it should work fine!
Thanks, Marwzoor
@merlin4life
MobHealth has always been very lightweight and speedy. Im guessing it must be an interaction with another plugin or the new healthbar code. Have you tried disabling health bars?
Can you also run /timmings and put the results through http://aikar.co/timings.php ? That will pinpoint exactly which evets and plugins lag is coming from.
@Matt19901
Thanks, will look over. Versions are changing rapidly and its easy to get a mismatch.
I adding in MA too and it doesn`t seem to want to play nice with mob health i sent you a PM with the error in it