HealthBarPlus-CFZ
This is a fixed version of HealthBarPlus by Kaipr
HealthBarPlus will display ASCII HP-bars bellow players name for SpoutCraft users. It supports Heroes (1.4.6) and maps the maximum hp to a configurable amount of bars (so the bars always display the hp %). The format and colors of the bar is configurable.
**Dependencies: SpoutPlugin (required) Heroes (optional)**
**healthbarplus.reload** - Reloads configuration. Default: op
**TESTED AND WORKING ON CB1.3.2-R1.0 with Spoutplugin #1361 & Heroes #1582**
*Fixed a bug causing problems creating the default config.yml
* Fixed compatibility for CB1.3.2-R1.0 and latest Heroes build
* Changed default bar template
Please report bugs in the comments.
Developers : Github (source)
Server Admins : Download from BukkitDev (latest version)
HealthBarPlus will display ASCII HP-bars bellow players name for SpoutCraft users. It supports Heroes (1.4.6) and maps the maximum hp to a configurable amount of bars (so the bars always display the hp %). The format and colors of the bar is configurable.
**Dependencies: SpoutPlugin (required) Heroes (optional)**
Permissions
**healthbarplus.see** - Lets players see health bars. This permission is only needed/checked if use_see_permission is set to true. Default: false**healthbarplus.reload** - Reloads configuration. Default: op
Commands
**/healthbarplus reload** - Reloads configuration (template reloading can take 1-2 seconds).**TESTED AND WORKING ON CB1.3.2-R1.0 with Spoutplugin #1361 & Heroes #1582**
Changelog
0.2a-dev
*Built the plugin in a proper developing environment*Fixed a bug causing problems creating the default config.yml
0.2-dev
* Fixed an error due to "disabled-worlds" not beign used by Heroes anymore* Fixed compatibility for CB1.3.2-R1.0 and latest Heroes build
* Changed default bar template
Please report bugs in the comments.
Developers : Github (source)
Server Admins : Download from BukkitDev (latest version)
-
View User Profile
-
Send Message
Posted Oct 8, 2012@clonecommando101
Looks like your not using the right version of Heroes. Heroes API changed a lot since the 1.2.5 version.
An 1.2.5 version of this plugin would need a bit of recode, nothing really big, but let's just say i prefer to focus on fixing bugs before maintaining multiple versions.
This is due to the fact that some classes have been renamed in newer heroes build.
-
View User Profile
-
Send Message
Posted Oct 8, 2012Yes, even with the new "HealthBarPlus-CFZ 0.2a-dev(fix)" My server has problems with it as ( I think ) Its minecraft version 1.2.5 not 1.3.2 BUT the reason I think is is that there is a config file but with nothing in it but Kiak's config works perfectly, thank you Kiak.
EDIT: Upon joining I have noticed it sends me this on the server so Kiak's config might not be working 100%...
18:43:11 [SEVERE] Could not pass event PlayerJoinEvent to HealthBarPlus-CFZ org.bukkit.event.EventException at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.ja va:304) at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.jav a:62) at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.j ava:477) at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.j ava:462) at net.minecraft.server.ServerConfigurationManager.c(ServerConfiguration Manager.java:134) at net.minecraft.server.NetLoginHandler.b(NetLoginHandler.java:129) at net.minecraft.server.NetLoginHandler.a(NetLoginHandler.java:35) at net.minecraft.server.NetworkListenThread.a(NetworkListenThread.java:6 5) at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:559) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:451) at net.minecraft.server.ThreadServerApplication.run(SourceFile:492) Caused by: java.lang.NoClassDefFoundError: com/herocraftonline/heroes/Heroes at net.blockheaven.kaipr.healthbarplus.HealthBarPlus.updateTitle(HealthB arPlus.java:103) at net.blockheaven.kaipr.healthbarplus.HealthBarPlus.updateTitle(HealthB arPlus.java:93) at net.blockheaven.kaipr.healthbarplus.HBPListener.onPlayerJoin(HBPListe ner.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.ja va:302) ... 10 more Caused by: java.lang.ClassNotFoundException: com.herocraftonline.heroes.Heroes 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) ... 18 more 18:43:12 [INFO] [Spout] Successfully authenticated clonecommando101's Spoutcraft client. Running client version: 1548 18:43:12 [WARNING] Task of 'HealthBarPlus-CFZ' generated an exception java.lang.NoClassDefFoundError: com/herocraftonline/heroes/Heroes at net.blockheaven.kaipr.healthbarplus.HealthBarPlus.updateTitle(HealthB arPlus.java:103) at net.blockheaven.kaipr.healthbarplus.HealthBarPlus$1.run(HealthBarPlus .java:54) at org.bukkit.craftbukkit.scheduler.CraftScheduler.mainThreadHeartbeat(C raftScheduler.java:126) at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:525) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:451) at net.minecraft.server.ThreadServerApplication.run(SourceFile:492)
-
View User Profile
-
Send Message
Posted Oct 8, 2012@Kiak
It seems to work now! Thanks a lot :D
-
View User Profile
-
Send Message
Posted Oct 8, 2012@mmorton89
That looks more like an error with that latest spout version
Try downgrading to an older build
I know for a fact that build 1812 worked for me.
There have been dozens of new builds overnight so it might just be a matter of wait another day or 2 and problem will be resolved
-
View User Profile
-
Send Message
Posted Oct 8, 2012@Kiak
I can not get this to work on my local server. I have copied your config and pasted it into my config.yml I have bukkit b2377 1.3.2-R1.0
It wont let anyone join the server and does not give me a error in console.
Just this error from spout. http://pastebin.com/swjNP2Z6
-
View User Profile
-
Send Message
Posted Oct 8, 2012@dexyh1234
Check the generated config.yml in /plugins/healthbar is it empty? thats the problem
either way try replacing your config with my working version below
Note that for no explainable reason i had to put count 11 to show 10 hearts. you might have to change it if that doesn't happen for you.
-
View User Profile
-
Send Message
Posted Oct 8, 2012Ive downloaded craftbukkit again, but I got the same error. I guess I used 1.3.2 r1.0 already. Any other ideas? =)
(ps: I get this error when I join my server.. On startup it all looks fine)
-
View User Profile
-
Send Message
Posted Oct 8, 2012@dexyh1234
That looks like the error i got when i was using CB 1.3.2 r0.1 instead of R1.0! double check because that new Craftbukkit version is only a day or 2 olds.
-
View User Profile
-
Send Message
Posted Oct 8, 2012I can't get this to work. I use the latest recommended bukkit, spout and spoutplugin (1.3.2).
My serverlog says this: http://pastebin.com/M0dSyuMh
Can you tell me what's causing my error?
-
View User Profile
-
Send Message
Posted Oct 7, 2012@Kiak
I like this one! I shall make a forum so people can share their templates
-
View User Profile
-
Send Message
Posted Oct 7, 2012This Code is for a Heart Icon and so the above config options will give you a Red | Black heart bar (same scheme as the vanilla minecraft)
-
View User Profile
-
Send Message
Posted Oct 7, 2012@Kiak
Good to see it's working for you :D
-
View User Profile
-
Send Message
Posted Oct 7, 2012Heres some Spoutly Goodness for yall Featuring
@confuz3d You're most welcome buddy, I can't code any java yet but I can at least spam yml attempts till it works
Thanks Tons for updating this
-
View User Profile
-
Send Message
Posted Oct 7, 2012@Kiak
I will look into that for sure!
Btw thanks a lot for the sample configs you gave me (you basically saved me a couple hours which i'd have spent installing windows xD), i'll try to make a more 'unervisal' default config for next version.
-
View User Profile
-
Send Message
Posted Oct 7, 2012Now i just have 1 suggestion for an upgrade
It would be cool if the HP 1234 Display changed colour at different HP %... eg
-
View User Profile
-
Send Message
Posted Oct 7, 2012@confuz3d
I've cracked it! I don't know why my fix works, I just borrowed these colour code formats from Essentials
-
View User Profile
-
Send Message
Posted Oct 7, 2012On windows: the best i could achieve was this config
In game it still has the hyphenateds like this
-
View User Profile
-
Send Message
Posted Oct 7, 2012@confuz3d
When i use the default § symbol it always displays a wierd hyphenated A for me in game I cant avoid it without removing colour
Aside from that it works fine if you change the hp bars to " | "
-
View User Profile
-
Send Message
Posted Oct 7, 2012You just sit tight buddy. I've got it to show in game correctly now with no console errors
Only issue remaining is it displays really wierd characters
I'm trying to figure out some good windows ones that work and then il report back
Dev fix STILL generates a blank config though :( so thats one problem you can work on.
it's no doubt because of the same unacceptable characters so one fix will fix both.
-
View User Profile
-
Send Message
Posted Oct 7, 2012@Kiak
I will try to get my hands on a windows PC for more testing because i can't replicate the issue even in a virtual machine :(
the 0.2-dev(fix) version doesn't have the special character in config.yml so it should work.
Try deleting all files related to this plugin (the .jar and the config folder) then download HealthBarPlus-CFZ 0.2a-dev(fix) and see if the config loads properly.