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
-
View User Profile
-
Send Message
Posted Jun 8, 2012Hello, my server and I would appreciate it if you could update this plugin.
Thanks in advance.
-
View User Profile
-
Send Message
Posted May 13, 2012[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
-
View User Profile
-
Send Message
Posted May 13, 2012[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
-
View User Profile
-
Send Message
Posted Apr 12, 2012How do you get the experience bar to go on top of the screen?
-
View User Profile
-
Send Message
Posted Apr 9, 2012I 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.
-
View User Profile
-
Send Message
Posted Mar 11, 2012however takes over put a link here please! thanks!
-
View User Profile
-
Send Message
Posted Mar 7, 2012Is there a update,my server loves this plugin! We can not live without!
-
View User Profile
-
Send Message
Posted Feb 28, 2012@kaipr
If you want to take over just ask. Thanks :)
-
View User Profile
-
Send Message
Posted Feb 28, 2012@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.
-
View User Profile
-
Send Message
Posted Feb 28, 2012E_HERO_Kyle is right, all of my users want to KEEP this plugin!
-
View User Profile
-
Send Message
Posted Feb 17, 2012Is this for version 1.1?
-
View User Profile
-
Send Message
Posted Feb 16, 2012@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. :]
-
View User Profile
-
Send Message
Posted Feb 7, 2012I 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.
-
View User Profile
-
Send Message
Posted Feb 2, 2012I 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)
-
View User Profile
-
Send Message
Posted Jan 26, 2012Please update!
-
View User Profile
-
Send Message
Posted Jan 16, 2012Can someone tell me where the Client addon is?
-
View User Profile
-
Send Message
Posted Jan 15, 2012wait support for latest CB (Craffbukkit 1.0.1R1)
-
View User Profile
-
Send Message
Posted Jan 14, 2012Fix or Inactive plz
-
View User Profile
-
Send Message
Posted Dec 31, 2011does anyone have a fix for players displaying wrong name ?
-
View User Profile
-
Send Message
Posted Dec 31, 2011another player's health bar shows my name above their head, how to fix?