HealthBar
Information
Thanks to phrstbin AND ManiaCraft for the code cleanup and revamp. I have merged the branch on github however I am unable to actually compile the code and put it up for download. https://github.com/Plornt/HealthBar-For-Minecraft--Spout-
This adds a health bar above players heads using the ClientSide plugin and server plugin called "Spout". Usage: Literally place the .jar into your plug-ins directory and it will automagically work.
Configuration
On start up the plugin automatically creates a config.yml file in the HealthBar folder. This contains the following properties: Code:
Characters: barCharacter: '|' #Character used in the bar making. Best use is if you want to change the size of the bar, type an extra pipe symbol container1: '[' #Character defining the start of the health bar container2: ']' #Character defining the end of the health bar Colors: #Self explanatory. goodHealthColor: 'a' containerColor: '9' hurtHealthColor: 'c' Permissions: usePermissions: 'false'
Change accordingly.
This plugin works with other plugins that edit the title name.
Heroes Support
Heroes support is now in the 0.8 beta release available under Files. Please use that if you use Heroes as it will not work properly. Also get back to me on any errors you find in general. Thanks :D!
Permissions
To use with permissions you must have a permissions based plugin installed (recommend PermissionsBukkit) and you must set "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
[SEVERE] Could not load 'plugins\HealthBar.jar' in folder 'plugins'
org.bukkit.plugin.InvalidPluginException java.lang.NoClassDefFoundError org/bukkit/event/player/PlayerListener
at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:148)
at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:305)
at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:230)
at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:207)
at org.bukkit.craftbukkit.CraftServer.<init>(CraftServer.java:183)
at net.minecraft.server.ServerConfigurationManager.<init>(ServerConfigurationManager.java:53)
at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:156)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:422)
at net.minecraft.server.ThreadServerApplication.run(SourceFile:492)
Caused by: java.lang.NoClassDefFoundError org/bukkit/event/player/PlayerListener
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$100(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:41)
at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:29)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at me.plornt.healthbar.HealthBar.<init>(HealthBar.java:28)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:144)
... 8 more
Caused by: java.lang.ClassNotFoundException org.bukkit.event.player.PlayerListener
at java.net.URLClassLoader$1.run(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:41)
at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:29)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
... 27 more
Pm me I would really like to see this work on the RP-PVP server I am working on
[SEVERE] Could not pass event PlayerJoinEvent to HealthBarPlus
org.bukkit.event.EventException
at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:303)
at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62)
at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:459)
at net.minecraft.server.ServerConfigurationManager.c(ServerConfigurationManager.java:132)
at net.minecraft.server.NetLoginHandler.b(NetLoginHandler.java:129)
at net.minecraft.server.NetLoginHandler.a(NetLoginHandler.java:41)
at net.minecraft.server.NetworkListenThread.a(NetworkListenThread.java:61)
at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:551)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:449)
at net.minecraft.server.ThreadServerApplication.run(SourceFile:492)
Caused by: java.lang.NullPointerException
at java.lang.String.replace(Unknown Source)
at net.blockheaven.kaipr.healthbarplus.HealthBarPlus.updateTitle(HealthBarPlus.java:124)
at net.blockheaven.kaipr.healthbarplus.HealthBarPlus.updateTitle(HealthBarPlus.java:93)
at net.blockheaven.kaipr.healthbarplus.HBPListener.onPlayerJoin(HBPListener.java:22)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:301)
... 9 more
How do you get the experience bar to go on top of the screen?
I created a new plugin based on the idea of this with some more features and a total recode: http://dev.bukkit.org/server-mods/healthbarplus/
As this seems dead, I think it's ok to redirect people to it.
however takes over put a link here please! thanks!
Is there a update,my server loves this plugin! We can not live without!
@kaipr
If you want to take over just ask. Thanks :)
@G4meM0ment
I will let anyone who can code take over the project. Although someone the other day submitted a few fixes via github so Ill merge them in a minute. I cant do anything with the project due to time really. I would love to get back into making plugins but I just cant.
E_HERO_Kyle is right, all of my users want to KEEP this plugin!
Is this for version 1.1?
@kaipr
I implore you to either release or take over this project! The idea is really good, and many people will be really happy that it works. :]
I got it working with the "Heroes support", but the code has some really rough edges and the Heroes support is just half finished (which is why I won't offer it for download).
As it doesn't seem like anyone takes this over officially, I'll try to contact the author.
I think it still works, I used it during 1.8 and it worked. BTW, it doesn't work well with MobDisguise; this makes the name and the health go above whatever you turned into.(you're still visible)
Please update!
Can someone tell me where the Client addon is?
wait support for latest CB (Craffbukkit 1.0.1R1)
Fix or Inactive plz
does anyone have a fix for players displaying wrong name ?
another player's health bar shows my name above their head, how to fix?
So there is no Heroes support atm right?