Inactive [MECH/INFO/RPG] HealthBar v0.7 - Show health above players heads - [Perms] [Spout] [1060]

Discussion in 'Inactive/Unsupported Plugins' started by plornt, Aug 21, 2011.

  1. Offline

    plornt

  2. Offline

    shanecraft

    Definitely getting this, will report back with how it works (If I remember =D). I've been looking for a plugin like this since ye olde days of starting up a small hamachi server.
     
  3. Offline

    Marcos Cosmos

    "automagically", pure [gold] xD

    Also, very nice plugin, surprised I've not seen any like it before now. Well done!,
    Marcos Cosmos
     
  4. Offline

    Callum Smith

    How do i get this amazing pluggin to work with playereditor ? when I use the title option it removes the health bar :(
     
  5. Offline

    plornt

    It works fine :) No lag at all

    Take damage, it will reload the health bar on the title.

    Delete your config. It got loaded in when the plugin was broken, sorry!

    I wasnt able to test with someone who wasnt using spout, is this the case? Was any of your users not using spout?

    I think I might need to get the players online from the spout players rather than the bukkit player list.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 18, 2016
  6. Code:
    2011-08-22 10:30:59 [SEVERE] Could not pass event ENTITY_DAMAGE to HealthBar
    java.lang.NoClassDefFoundError: org/getspout/spoutapi/SpoutManager
        at me.plornt.healthbar.HealthBar.setTitle(HealthBar.java:44)
        at me.plornt.healthbar.HealthBarEntityListener.onEntityDamage(HealthBarEntityListener.java:19)
        at org.bukkit.plugin.java.JavaPluginLoader$59.execute(JavaPluginLoader.java:656)
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:338)
        at net.minecraft.server.EntityHuman.damageEntity(EntityHuman.java:427)
        at net.minecraft.server.EntityPlayer.damageEntity(EntityPlayer.java:180)
        at net.minecraft.server.EntityHuman.d(EntityHuman.java:566)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:883)
        at net.minecraft.server.Packet7UseEntity.a(SourceFile:33)
        at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:89)
        at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:454)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:363)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    Caused by: java.lang.ClassNotFoundException: org.getspout.spoutapi.SpoutManager
        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:36)
        at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:24)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        ... 16 more
    I became this error
     
  7. Offline

    plornt

    Ill have a look at this when Im back from college (bout an hour). Really didnt expect there to be this many bugs >.>, if anyone here is a coder and would like to do me a favour, could you tell me what specifically is wrong with the above? Ive pushed the source code to github. Thanks! (If not ill try stuff till it works).


    Also DarkMinecraft what version are you using? (Craftbukkit)
     
  8. Offline

    plornt

    Can you try to update your spout or make sure its being loaded as from what I read it means when I compiled the code, everything was there, but when it tries to run it, things are missing.

    Right! I think ive got it, I have now made checks to make sure the player it is looping through is an instance of a Spout Player.

    One second while I upload 0.5

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 18, 2016
  9. So now I bacame this error:

    Code:
    2011-08-22 11:52:04 [INFO] ******* [/127.0.0.1:50202] logged in with entity id 203 at ([world] 232.85372762817127, 67.0, -179.64273999897094)
    2011-08-22 11:52:04 [SEVERE] Could not pass event PLAYER_JOIN to HealthBar
    java.lang.NoClassDefFoundError: org/getspout/spoutapi/SpoutManager
        at me.plornt.healthbar.HealthBar.setTitle(HealthBar.java:44)
        at me.plornt.healthbar.HealthBarPlayerListener.onPlayerJoin(HealthBarPlayerListener.java:17)
        at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:244)
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:338)
        at net.minecraft.server.ServerConfigurationManager.c(ServerConfigurationManager.java:124)
        at net.minecraft.server.NetLoginHandler.b(NetLoginHandler.java:97)
        at net.minecraft.server.NetLoginHandler.a(NetLoginHandler.java:74)
        at net.minecraft.server.Packet1Login.a(SourceFile:43)
        at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
        at net.minecraft.server.NetLoginHandler.a(NetLoginHandler.java:40)
        at net.minecraft.server.NetworkListenThread.a(SourceFile:91)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:454)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:363)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    Caused by: java.lang.ClassNotFoundException: org.getspout.spoutapi.SpoutManager
        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:36)
        at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:24)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        ... 15 more
    2011-08-22 11:52:04 [INFO] [MineBackup] Performing delayed backup
    2011-08-22 11:52:05 [INFO] [MineBackup] Starting backup...
    2011-08-22 11:52:05 [INFO] [MineBackup]  * world
    2011-08-22 11:52:06 [INFO] [MineBackup]  * world_nether
    2011-08-22 11:52:06 [INFO] [MineBackup] Compressing...
    2011-08-22 11:52:06 [WARNING] Can't keep up! Did the system time change, or is the server overloaded?
    2011-08-22 11:52:06 [INFO] ******  [/127.0.0.1:50205] logged in with entity id 224 at ([world] 231.44121017609933, 66.0, -171.7211084016306)
    2011-08-22 11:52:07 [SEVERE] Could not pass event PLAYER_JOIN to HealthBar
    java.lang.NoClassDefFoundError: org/getspout/spoutapi/SpoutManager
        at me.plornt.healthbar.HealthBar.setTitle(HealthBar.java:44)
        at me.plornt.healthbar.HealthBarPlayerListener.onPlayerJoin(HealthBarPlayerListener.java:17)
        at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:244)
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:338)
        at net.minecraft.server.ServerConfigurationManager.c(ServerConfigurationManager.java:124)
        at net.minecraft.server.NetLoginHandler.b(NetLoginHandler.java:97)
        at net.minecraft.server.NetLoginHandler.a(NetLoginHandler.java:74)
        at net.minecraft.server.Packet1Login.a(SourceFile:43)
        at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
        at net.minecraft.server.NetLoginHandler.a(NetLoginHandler.java:40)
        at net.minecraft.server.NetworkListenThread.a(SourceFile:91)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:454)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:363)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    2011-08-22 11:52:12 [INFO] [MineBackup] Done !
     
  10. Offline

    plornt

    Are you definitely sure you have updated your Spout Server plugin?
     
  11. what is spout server plugin ?
     
  12. Offline

    plornt

    Posted in the first post:

    Requirements:
    SpoutCraft - Client & Server

    You need both the client and server plugin for it to work correctly.
     
  13. Offline

    Hitman4Hire

    Is the bar at the top related to levelcraft?
     
  14. Offline

    ruzco

    20:57:02 [SEVERE] Could not pass event PLAYER_JOIN to HealthBar
    java.lang.NoClassDefFoundError: org/getspout/spoutapi/SpoutManager
    at me.plornt.healthbar.HealthBar.setTitle(HealthBar.java:44)
    at me.plornt.healthbar.HealthBarPlayerListener.onPlayerJoin(HealthBarPlayerListener.java:17)
    at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:244)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:338)
    at net.minecraft.server.ServerConfigurationManager.c(ServerConfigurationManager.java:124)
    at net.minecraft.server.NetLoginHandler.b(NetLoginHandler.java:97)
    at net.minecraft.server.NetLoginHandler.a(NetLoginHandler.java:33)
    at net.minecraft.server.NetworkListenThread.a(SourceFile:91)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:454)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:363)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    Caused by: java.lang.ClassNotFoundException: org.getspout.spoutapi.SpoutManager
    at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
    at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:36)
    at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:24)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
    ... 12 more

    What is this?? i get this for all spout plugins? i have both spout and the client running, so is it a conflicting plugin?
     
  15. Offline

    plornt

    Try updating the spoutcraft server plugin. Basically when we compile plugins it has all the files it needs on our computers, when we transfer it over to you, we dont know what version (which may have different files) you have so its easier to compile to the latest version. (Tried to make that sound basic)
     
  16. Offline

    ruzco

    allright thanks man! i'll try that now. <(")™
     
  17. Offline

    MindEngineer

    Nice job! I've been interested in having health show above head.
     
  18. Offline

    Beatkidz

    i love this plug-in but i got a few things you could possible think about adding.

    1. Mcmmo compatibility. so only party members can see your bar
    2. Groupmanager support. i might have just blew through it but i'm pretty sure it wasn't working
    3. NPC/Citizens support. Plug-in throws errors when you swing at a NPC

    adding tses things would be the Best
     
  19. Offline

    unrealpancake

    already tried deleing config
     
  20. Offline

    plornt

    Redownload plugin an delete vonfig
     
  21. Offline

    Retrophaze

    This is awesome!!
     
  22. Offline

    Tesseracto

    2011-08-22_17.07.23.png 2011-08-23_16.32.43.png 2011-08-23_16.32.47.png 2011-08-22_17.07.23.png 2011-08-23_16.32.36.png 2011-08-23_16.32.43.png 2011-08-23_16.32.47.png
    Up to three bars on some :/! Bug?
     
  23. Offline

    plornt

    Hmm I thought I fixed this... basically to work with things like player editor plugin I had to save the previous name in a table then it appended the health bar to the previous name. What looks like is happening is somewhere along the line its not updating the previous name correctly (it should remove the health bar then readd it).

    I think ill go with a proper fix this time and make it split the name and the health bar.
     
  24. hmm you might wanna fix this. When you die it makes a double healthbar.
     
  25. Offline

    Flenix

    Couple of things I've noticed:

    Health bars don't update after using Heal's of any sort (eg the Essentials heal sign or /heal) - you have to hit the player to update it. Maybe just make it check for an update every 10 seconds, its not crucial in that space of time... or just check for update on every click or name in command.

    Health bars are always visible nice and bright. Could they follow the rules of the display name, and when they're crouching behind a wall it totally disappears?

    Good solution to both: The bar could just appear for 3 seconds after a change of health instead of always being there.

    Oh and as some others pointed out, players randomly get two bars sometimes (its client side, others players say "Why does X have two bars" when I only see one on them, and one player claimed someone had 3 bars...) EDIT yup just saw someone with 3 bars :)
     
  26. Offline

    nossr50

    You should run a repeating task through the Bukkit scheduler to catch changes in health from other plugins
     
  27. Offline

    plornt

    @Flenix and others sorry about the bugs, unfortunately I will have to fix them tommorow as I have to get some sleep.

    @nossr50 Thanks for the advice, I was initially thinking of this but I didnt really want to lag out anything. Hence my reluctancy to even put in a loop to go through permissions >.>. But I mean I will add that all to a config file (making it optional and optional interval to check).

    At the moment I will put a notice at the top of the thread saying the plugin is sort of broken but if they notice any other errors then definatly post here.

    Thanks for all the feedback people!
     
  28. Offline

    SeeD419

    Epic 3 health bar glitch:

    [​IMG]
     
  29. Offline

    BioRage

    Notice
    This plugin currently has many bugs which I will be fixing on the 24th of August (Just incase you view this tommorow). The current bugs are (ofwhich I know):
    - HealthBar duplicating
    - Bars not updating when external plugins update health until you take damage.
    Both are fixable and if you do plan on using this and can cope with the above I recommend updating to the next release tomorrow night. Thanks!

    OP.
     
  30. Offline

    SeeD419

    I read it already, but thanks.

    Just sharing the screenshot.
     

Share This Page