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

    Outcast61

  3. Offline

    nossr50

    Clever, I'll try it out on my own server.
     
  4. Offline

    Plague

  5. Offline

    plornt

    I put an edit at the end of the thread... but where the hell do I edit my title? Theres no box under more options either...

    Edit: Didnt bother reading the post directly below that post. Got it :p

    Ok just realised there is alot of redundant code from another plugin I was making left in. Will fix as soon as player dialog is done...

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 18, 2016
  6. Offline

    rslink

    Does this override player editor title? If so can you change it so it does not?
     
  7. Offline

    plornt

    It does, initially I had it use the current title, then add it on but quickly realised it was appending the bar every time. It shouldnt be too hard so Ill try to add it in a minute...
     
  8. Offline

    Albic

  9. Offline

    plornt

    -Version 0.2-
    • Cleaned up the code a bit.
    • Added compatibility with mods that also change the title. Appends to the end of the old title now.
    Updated.

    @Albic above. Ill add those now. Probably take about 30 mins as the people on my server hate me closing it to test :p
     
  10. Offline

    Albic

    atm you have the tags "MECH" and "INFO" you should add "RPG"
     
  11. Offline

    rslink

  12. Offline

    MadcowD

    Ability to disable it for a client with v? or some key
     
  13. Offline

    Dec64

    I get this error in console when running healthbar, seems to show up fine on screen, but still showin the error.

    Also i dont imagine this is possible, but anyone to not show health bar on some ppl, we run citizens and it shows it on the NPCS if they get hit once. no big deal tho
     
  14. Offline

    Haekon

    Anybody test this with Heroes yet? I'm hoping it works. Even though Heroes does a lot of adjusting to player health, it still adjusts things so the hearts meter still works. I'll give it a go here soon.
     
  15. Offline

    plornt

    It might not, if not I will possibly have to change the events priority to "Monitor" so it runs after all the other plugins have.

    Also Dec64 I have fixed the error in the next version...
     
  16. Offline

    Dec64

    Ok cool, also is it possible under spouts current API to make the health bar a image instead of text characters?

    If it is possible and on the to-do, i could supply and graphics needed if you need help with that.
     
  17. Offline

    plornt

    Im not too sure, I dont think I can add that like that since most of the text labels/Images I have seen in the SpoutAPI is literally on the screen. I will have a look into it though.
    Edit: Removed.

    -Version 0.3-
    • Added a config file.
    • Fixed a few null pointer errors.
    • Realised Eclipse wasnt exporting .src folder about an hour or two into raging...
    Updated. Most. Annoying. Update. Ever.

    Didnt get around to adding permissions support mainly because I forgot it and the fact that I would need to rewrite a small chunk of it. Possibly do that later.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 18, 2016
  18. It dont work with 1060
     
  19. Offline

    plornt

    Im using it now... Did you look at the requirements?
     
  20. Offline

    BioRage

    This is awesome, going to try it out.
     
  21. Offline

    plornt

    :D

    Let me know if it doesnt work. I made a couple of untested edits before I uploaded (only minor) so it should all be fine.
     
  22. Offline

    BioRage

    Sure thing, one thing I'd like, Permissions please.

    I plan to use a classes system, and add this for certain races/classes! Cheers.
     
  23. Offline

    plornt

    Yeah permissions is coming soon generally because the current way it works is by setting globally the title of a player which is what Spout lets me do. However it also lets you change the view of the title per player, meaning if I was to do this I would need it to go through every player to find what users they are allowed to view the health of. So as you can probably tell that doesn't sound that efficient but ill make it anyway and try it when it comes to it.
     
  24. Offline

    BioRage

    Hm, maybe it's best to leave it than.
     
  25. Offline

    plornt

    Ill give it a go. If it lags the server then ill put it as an optional release (or configurable in the config)

    -Version 0.4-
    • Added permissions nodes: healthbar.cansee and healthbar.reload
    • Added /healthbar reload to reload the config file.
    • Added permissionsBukkit support.
    Please read first post to find out how to use the permissions support.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 18, 2016
    BioRage likes this.
  26. Offline

    BioRage

    How is it? *Have yet to use v0.4*
     
  27. Offline

    1born2kill

    maybe add armor bar below health?
     
  28. Offline

    unrealpancake

    I get an error whenI try running it. Do You mind helping out?
    Code:
    [SEVERE] Could not load 'plugins\HealthBar.jar' in folder 'plugins':
    could not determine a constructor for the tag tag:yaml.org,2002:org.bukkit.ChatColor
     in "<reader>", line 6, column 22:
            goodHealthColor: !!org.bukkit.ChatColor '§a'
                             ^
    
        at org.yaml.snakeyaml.constructor.SafeConstructor$ConstructUndefined.construct(SafeConstructor.java:459)
        at org.yaml.snakeyaml.constructor.BaseConstructor.constructObject(BaseConstructor.java:184)
        at org.yaml.snakeyaml.constructor.BaseConstructor.constructMapping2ndStep(BaseConstructor.java:327)
        at org.yaml.snakeyaml.constructor.SafeConstructor.constructMapping2ndStep(SafeConstructor.java:125)
        at org.yaml.snakeyaml.constructor.BaseConstructor.constructMapping(BaseConstructor.java:308)
        at org.yaml.snakeyaml.constructor.SafeConstructor$ConstructYamlMap.construct(SafeConstructor.java:443)
        at org.yaml.snakeyaml.constructor.BaseConstructor.constructObject(BaseConstructor.java:184)
        at org.yaml.snakeyaml.constructor.BaseConstructor.constructMapping2ndStep(BaseConstructor.java:327)
        at org.yaml.snakeyaml.constructor.SafeConstructor.constructMapping2ndStep(SafeConstructor.java:125)
        at org.yaml.snakeyaml.constructor.BaseConstructor.constructMapping(BaseConstructor.java:308)
        at org.yaml.snakeyaml.constructor.SafeConstructor$ConstructYamlMap.construct(SafeConstructor.java:443)
        at org.yaml.snakeyaml.constructor.BaseConstructor.constructObject(BaseConstructor.java:184)
        at org.yaml.snakeyaml.constructor.BaseConstructor.constructDocument(BaseConstructor.java:143)
        at org.yaml.snakeyaml.constructor.BaseConstructor.getSingleData(BaseConstructor.java:129)
        at org.yaml.snakeyaml.Yaml.load(Yaml.java:264)
        at org.bukkit.util.config.Configuration.load(Configuration.java:82)
        at org.bukkit.plugin.java.JavaPlugin.initialize(JavaPlugin.java:157)
        at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:175)
        at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:213)
        at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:136)
        at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:143)
        at org.bukkit.craftbukkit.CraftServer.<init>(CraftServer.java:110)
        at net.minecraft.server.ServerConfigurationManager.<init>(ServerConfigurationManager.java:51)
        at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:133)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:337)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    Here is config file:
    Code:
    Characters:
        barCharacter: '|'
        container1: '['
        container2: ']'
    Colors:
        goodHealthColor: !!org.bukkit.ChatColor '§a'
        containerColor: !!org.bukkit.ChatColor '§9'
        hurtHealthColor: !!org.bukkit.ChatColor '§c'
    
    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 18, 2016
  29. Offline

    BioRage

  30. Offline

    unrealpancake

Share This Page