MobHealth

Notification Example

Notification

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.

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: 8.2.2

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.

Curse Mod Spotlight

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

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.

Read full change log here.

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 :)

You must login to post a comment. Don't have an account? Register to get one!

  • Avatar of madtomic madtomic Jul 24, 2014 at 12:18 UTC - 0 likes

    Can the latest build work on cb1.7.2-r0.3?

  • Avatar of SableDnah SableDnah Jun 10, 2014 at 19:08 UTC - 0 likes

    @markGod: Go

    You'd need to turn of the player health to disable MobHealth's scoreboard. Each player can only have one scoreboard at a time :/

    I'm gonna add an explicit flag to disable scoreboards on the next release just to make it clearer.

    "All this technology and it still takes forever to get anywhere" [ Donate ] [ Twitter ]

    Mob HealthLegendQuest
    Mob Health: Simple damage reporting.LegendQuest: Complete RPG plugin.
  • Avatar of markGod markGod Jun 10, 2014 at 18:26 UTC - 0 likes

    Is this compatible with scoreboardstats plugin?

  • Avatar of SableDnah SableDnah May 24, 2014 at 10:26 UTC - 0 likes

    @SpankyMcFlappers: Go

    Which stats plugin do you use?

    Last edited May 24, 2014 by SableDnah
  • Avatar of SpankyMcFlappers SpankyMcFlappers May 23, 2014 at 22:43 UTC - 0 likes

    I am running into an issue. I have a scoreboard plugin that I use for stats. When the scoreboard loads up it cancels out the health bar on everything. I know this is a conflict with most plugins but I was wondering if there was a way to fix it. If there is I would love to know :D

    Last edited May 23, 2014 by SpankyMcFlappers
  • Avatar of SableDnah SableDnah May 16, 2014 at 22:48 UTC - 0 likes

    @griffenx: Go

    Yeah - I found it and just pushed out v8.2.0.

    Turns out it was the opposite - something within Bukkit was adding &f (white colour) to the start causing it to clip the name. *Should* be all sorted now in v8.2.0 when Bukkit approve it let me know how it goes.

  • Avatar of griffenx griffenx May 16, 2014 at 22:39 UTC - 0 likes

    @SableDnah: Go

    It happens with all damage types for me. Players can just punch a zombie a few times and its nametag will be completely empty.

    BFAK:90656198,07357f11a536059ec3e4f7366cb935ec756f8fdcbbd7e5a8335e9787cb7b6194 tmb

  • Avatar of SableDnah SableDnah May 16, 2014 at 10:29 UTC - 0 likes

    @griffenx: Go

    I've noticed this myself - damage effects like poison and fire seem to cause it. I'm mid debugging it now for the 1.7.9-r0.1 release.

  • Avatar of griffenx griffenx May 16, 2014 at 07:03 UTC - 0 likes

    I've been having an interesting problem with this plugin for a while now for many mobs, when they take damage, instead of decreasing their health bar, the plugin instead just chops characters off of the end of their name, until their name is completely blank. It's frustrating, and seems to work with invincible mobs, such as pets, player horses, and NPC's. Any idea what could be causing this?

  • Avatar of SableDnah SableDnah May 14, 2014 at 16:33 UTC - 0 likes

    @pepper82: Go

    Did you edit the healthBarCharacter in lang.yml? whilst it was running?

    Can you raise a ticket with versions and contents of your lang.yml please.

Facts

Date created
Jan 10, 2012
Categories
Last update
May 25, 2014
Development stage
Release
Language
  • enUS
License
GNU General Public License version 3 (GPLv3)
Curse link
MobHealth
Downloads
672,364
Recent files

Authors

Relationships

Optional dependency
SpoutPlugin