HealthbarX
Information
This plugin is a continuation of this inactive project: http://dev.bukkit.org/server-mods/healthbar/
This adds a health bar above player's heads using Spout.
Usage: Simply place the jar file into your plugin directory then optionally edit the config file to customize the healthbar display.
Important note
Expect more major changes (especially configuration changes) as I diverge more from the original project.
Configuration
On start up the plugin automatically creates a config.yml file in the HealthBar folder. This contains the following properties:
bar: # Character used to make the healthbar character: '|' # Format used for the healthbar. # Note: Use the format &&<hex> for all color codes # Current variables (note: some, but not all, variables have bar forms): # {health},{health_bar} = the player's current health # {max_health} = the player's maximum health # {health_percent} = the player's current health percentage (without % sign) # {missing_health},{missing_health_bar} = the player's maxhealth - current health # {lost_health},{lost_health_bar} = the amount of health the player has lost since the last healthbar update # {gained_health},{gained_health_bar} = the amount of health the player has gained since the last healthbar update # {mana},{max_mana},{mana_percent},{missing_mana} {mana_bar},{missing_mana_bar} = same as their health-based cousins format: '&&9[&&a{health_bar}&&b{gained_health_bar}&&6{lost_health_bar}&&c{missing_health_bar}&&9]' # Controls the size of the healthbar (values under 1.0 work somewhat currently, bars may be added/removed at different levels of health - will be fixed soon) healthScale: 1.0 # A value under 1.0 is recommended for mana - mana/maximum mana tends to be larger than health/maximum health manaScale: 1.0 system: # Controls whether or not to have healthbars only show up for players with a certain permission usePermissions: false hideDuringSneak: true
Change accordingly.
This plugin works with other plugins that edit the title name.
Permissions
To use with permissions you must have a permissions based plugin installed and you must have "usePermissions" as 'true' in config.yml.
Nodes: healthbar.cansee - Allows the player to see other players health bar. healthbar.reload - Allows you to reload the configuration file.
Requirements
SpoutCraft - Client & Server
Optional
Heroes - Uses this plugin's health and mana systems if installed
Source
The source repository is located here: https://github.com/0xFDotOrg/HealthBar-For-Minecraft--Spout-
hi,
aint there a way to show healthbar without sprout? like it did in the older versions?
Funny... a discontinued continue of a continue.
Will this be updated anytime soon? :P Its a great plugin
So is anyone else having major issues with this? Like it not showing the other person's healthbar?
@MCManCub
Working dev builds for 1.4 Spout are hitting the shelves man
Currently not loading this plugin so i'd LOVE to see an update bro
can help with debugging /testing at the very least.
@Necavi
Sure thing. I don't want to code it for you, but I can always help in keeping it updated if you're too busy. I'm fairly versed with Java. Good luck on finishing it! :D
MC
@MCManCub
Sorry, I've been really busy recently traveling, but now I'm home and will finish up what is left to do on the next version and release it.
After this version I will have implemented every feature I can think of, or have seen suggested anywhere and as such updates will likely only happy in the event of API breakage, although I'll still be here, of course.
@MCManCub
Anything new on this?
MC
@Necavi
Right. I need to re-enable it. However my copy is else where until Monday :P I may just have to wait until then or see how your newer build works out. Thanks again for the great plugin!
MC
@MCManCub
Ah, you said you'd disabled it, I thought it'd just be a matter of re-enabling it. I've temporarily removed that download because of the bugs, so you may not be able to find out unless you have a copy somewhere, I'm working on a new version currently.
@Necavi
Sure thing. I'll install it and then pastie when I see an error :)
MC
@MCManCub
Would you please paste your logs? I haven't had ANY issues with the plugin with factions installed.
@Necavi
I actually use Factions and still get errors with it :/ I have it disabled right now because of it so I can't paste it but threads in the late 40's were failing.
MC
Also, it may have been changes I made later, or it may be in the current beta, but it seems it won't load without Factions - I should have a build that fixes that issue as well as adds the final outstanding feature up later today.
@MCManCub
It changes from using the player.setTitle(String title) method (which applies that title to all players on the server) to using the player.setTitleFor(Player pl, String title) method (which applies that specific title to one player on the server, allowing your healthbar to show up differently depending on who is looking.)
@Necavi
What does the new setForEachPlayer config option do?
MC
@Necavi
My apologies!
The file has been uploaded for 20 hours, just waiting on bukkit's approval. Nothing I can do to speed it up, unfortunately!
@Necavi
I waited for this all day :(
MC
I'll be releasing an update today to fix a few issues and add factions/war support.