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 :)
Support for 1.13 or higher?
I have a problem with this plug-in on my 1.13 bukkit server:
Can someone help me?
Im trying to get the Achievement Notification method, it looks really sleek, I need Spout for that? is Spout outdated? what can i do?
I can carry it to http://www.mcbbs.net/forum.php ?
Can I carry it anywhere else?
@SableDnah
Please, add a little change to your plugin!
1. Add decimal values for damage. Damage calculation very unaccuracy in this plugin! Take the example in HealthBar and CombatIndicator.
2. Imposible to change player nickname (with %N placeholder). Always displayed in red color in action bar! [UPD]: Cause only when player in OP (maybe Essentials prefix or something else...)
3. Add HP-placeholder to [playerLabel] and [playerLabelPercent] message string, for be able to add prefix and suffix to side of player health point. Now only suffix possible!
4. Visible range for [playerLabel] and [playerLabelPercent].
5. Divide %N placeholder separatedly for mobs and players. And add chatMessage for mobs and separated for players. Very need!
6. When low HP, %H placeholder turn in red color. Can you remove that ??
7. Add hide time, and visible not only when u looking for mob (As in the HealthBar).
Need more customizations!!!
@ZwPBerserk
Mobhealth uses a scoreboard for player health, If you have featherboard you wont need that so disable it in mobhealth config and it'll disable the scoreboard.
Hey!
This plugin is breaking my scoreboard plugin (featherboard).
It removes the scoreboard on worldchange, or when i do: /heal or other things.
When i remove mobhealth the issue is fixed.
Thanks for this!!! I just replaced HealhBar with MobHealth, which seems way better!
@Keopha
Just done some rejigging of the packaging, can you try this one and see if it works http://www.sablecraft.co.uk/MobHealth.jar
@Keopha
Could you open a ticket: http://dev.bukkit.org/bukkit-plugins/mobhealth/create-ticket/ And post full startup log if possible please. Also check folder permissions it looks like it cant create the startup files.
@SableDnah
Okay, i've got this :
http://puu.sh/pwdII/283a38673b.png
([19:47:56] [Server thread/INFO]: [MobHealth] Enabling MobHealth v10.0.0 [19:47:56] [Server thread/ERROR]: Error occurred while enabling MobHealth v10.0.0 (Is it up to date?) java.lang.NullPointerException at main.java.me.sablednah.MobHealth.MobHealth.loadConfiguration(MobHealth.java:412) [?:?] at main.java.me.sablednah.MobHealth.MobHealth.onEnable(MobHealth.java:183) [?:?] at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:292) [craftbukkit-1.10.jar:git-Bukkit-10c10b3] at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:332) [craftbukkit-1.10.jar:git-Bukkit-10c10b3] at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:404) [craftbukkit-1.10.jar:git-Bukkit-10c10b3] at org.bukkit.craftbukkit.v1_10_R1.CraftServer.loadPlugin(CraftServer.java:347) [craftbukkit-1.10.jar:git-Bukkit-10c10b3] at org.bukkit.craftbukkit.v1_10_R1.CraftServer.enablePlugins(CraftServer.java:319) [craftbukkit-1.10.jar:git-Bukkit-10c10b3] at net.minecraft.server.v1_10_R1.MinecraftServer.t(MinecraftServer.java:407) [craftbukkit-1.10.jar:git-Bukkit-10c10b3] at net.minecraft.server.v1_10_R1.MinecraftServer.l(MinecraftServer.java:372) [craftbukkit-1.10.jar:git-Bukkit-10c10b3] at net.minecraft.server.v1_10_R1.MinecraftServer.a(MinecraftServer.java:327) [craftbukkit-1.10.jar:git-Bukkit-10c10b3] at net.minecraft.server.v1_10_R1.DedicatedServer.init(DedicatedServer.java:242) [craftbukkit-1.10.jar:git-Bukkit-10c10b3] at net.minecraft.server.v1_10_R1.MinecraftServer.run(MinecraftServer.java:517) [craftbukkit-1.10.jar:git-Bukkit-10c10b3] at java.lang.Thread.run(Thread.java:745) [?:1.8.0_72])
@Keopha
Ok that's worrying cause there should be a config.yml and a lang,yml file already there!
Your gonna need to check your startup logs for any/all messages about MobHealth - somethings not running right.
@SableDnah
Hi, thanks for answering Mhh no there isn't "toggleStates.bin error" :/ I didn't even have the folder, I created it and also a file players.yml but it's still not working :(
@Keopha
Look at your console start up: Do you see "toggleStates.bin error" ? (its echoed to console not logs so may not show in logs).
MH defaults to enabled for all, so not sure why - maybe permissions.
Your error is a problem with saving your MH taggle status. first time its used it creates a players.yml file in the /plugins/MobHealth/ folder? Do you have this file? If not - create an empty one maybe you don't have permissions to create it.
Hello I installed the plugin, I've got the command but i don't have mob health.. When I do /mh toggle i've got this message :
"[10:42:49] [Server thread/ERROR]: null org.bukkit.command.CommandException: Unhandled exception executing command 'mh' in plugin MobHealth v10.0.0 at org.bukkit.command.PluginCommand.execute(PluginCommand.java:46) [craftbukkit-1.10.jar:git-Bukkit-10c10b3] at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:140) [craftbukkit-1.10.jar:git-Bukkit-10c10b3] at org.bukkit.craftbukkit.v1_10_R1.CraftServer.dispatchCommand(CraftServer.java:625) [craftbukkit-1.10.jar:git-Bukkit-10c10b3] at net.minecraft.server.v1_10_R1.PlayerConnection.handleCommand(PlayerConnection.java:1296) [craftbukkit-1.10.jar:git-Bukkit-10c10b3] at net.minecraft.server.v1_10_R1.PlayerConnection.a(PlayerConnection.java:1156) [craftbukkit-1.10.jar:git-Bukkit-10c10b3] at net.minecraft.server.v1_10_R1.PacketPlayInChat.a(SourceFile:37) [craftbukkit-1.10.jar:git-Bukkit-10c10b3] at net.minecraft.server.v1_10_R1.PacketPlayInChat.a(SourceFile:9) [craftbukkit-1.10.jar:git-Bukkit-10c10b3] at net.minecraft.server.v1_10_R1.PlayerConnectionUtils$1.run(SourceFile:13) [craftbukkit-1.10.jar:git-Bukkit-10c10b3] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_72] at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_72] at net.minecraft.server.v1_10_R1.SystemUtils.a(SourceFile:45) [craftbukkit-1.10.jar:git-Bukkit-10c10b3] at net.minecraft.server.v1_10_R1.MinecraftServer.D(MinecraftServer.java:690) [craftbukkit-1.10.jar:git-Bukkit-10c10b3] at net.minecraft.server.v1_10_R1.DedicatedServer.D(DedicatedServer.java:360) [craftbukkit-1.10.jar:git-Bukkit-10c10b3] at net.minecraft.server.v1_10_R1.MinecraftServer.C(MinecraftServer.java:646) [craftbukkit-1.10.jar:git-Bukkit-10c10b3] at net.minecraft.server.v1_10_R1.MinecraftServer.run(MinecraftServer.java:550) [craftbukkit-1.10.jar:git-Bukkit-10c10b3] at java.lang.Thread.run(Thread.java:745) [?:1.8.0_72] Caused by: java.lang.NullPointerException at main.java.me.sablednah.MobHealth.MobHealth.togglePluginState(MobHealth.java:579) [?:?] at main.java.me.sablednah.MobHealth.MobHealthCommandExecutor.onCommand(MobHealthCommandExecutor.java:175) [?:?] at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44) [craftbukkit-1.10.jar:git-Bukkit-10c10b3] ... 15 more"
Do you know why ? :/
This is kool, thanks :D
I was digging through my old server to try and find what plugin I had that made it show how much damage a mob takes, and this little gem was it!
Any ETA on 1.9 support?
Edit: I re downloaded newest version, turned off player health and action bar and all is well on 1.9. I will be using SkillsAPI as well. Sorry, I wrote this comment before actually installing on my new spigot 1.9.2, but its working as well as I need it to. Thanks man!
@SableDnah
Any updates on this? Sorry to bother if you are busy.
@SmallSansSerif
Yeah - the Action bar disables if the NMS versions don't match. 1.9 support is in progress :)