[MECH] SlowHealth v3.2 - Auto Heal/Hurt Multi-World Permissions [1060]

Discussion in 'Inactive/Unsupported Plugins' started by ACTruncale, Jan 19, 2011.

  1. Offline

    ACTruncale

    SlowHealth v3.2.0

    Download: SlowHealth.jar
    Source included in JAR

    NOW WITH MULTI-WORLD AND PERMISSIONS SUPPORT
    NEW: ADDED BED HEALING


    Version:
    - v3.2.0 tested with CraftBukkit #122-1060​

    Description:
    - Adds health (configurable) every second (configurable) to players on the server.
    - Can hurt player if you make regen-amount negative
    - Can set maximum amount SlowHealth will heal the player by
    - Can set minimum amount SlowHealth will stop hurting the player by (if you set regen-amount to less than 0
    - Can set the starting altitude that slow health with start working
    - Multi-world support
    - Permissions support

    Instructions:
    - Save SlowHealth.jar to plug-in folder
    - Start and stop server to allow Slow Health to create the needed files.
    - Inside your plug-in folder there should be a SlowHealth Folder with three files
    - default.properties
    - world.properties (or whatever your default world is in your server.properties file)
    - WORLDLIST.txt
    - If you only have a single world just change the settings in your worlds property file.

    Adding Worlds to Slow Health:
    - For every world you have add the world name in the WORLDLIST.txt file. One world per line.
    - Run the server and let it create the properties file, then edit it to your liking.​
    - Any world not on the WORLDLIST.txt will use the setting in the default.properties file.​

    Customize Slow Health:
    All values must be in integer form (whole numbers)​
    - regen-rate:1
    - This value is how fast SlowHealth will heal you in second.​
    - regen-amount:1
    - This is how many 1/2 hearts SlowHealth will heal you for.​
    - Set this to a negative number to hurt the player :eek:
    - regen-max:20
    - Controls at what value SlowHealth will stop healing.​
    - regen-min:0
    - This is used if you are hurting the player instead of healing them.​
    - Controls when your stop hurting them. 0 will lead to death.​
    - regen-altitude:0
    - If a player goes below this depth, the will no longer be healed.​
    - Used if you want to make underground harder.​
    - sleep-heal:20
    - When players sleep through the night they get healed this amount.​

    Permissions:
    If using permissions use the node 'slowhealth' for everyone you want to be affected by this mod. Permissions is not needed to use this mod, Slow Health will default to everyone getting healed if not installed.​

    To be added:
    - Fix the plug-in to work if properties is set to spawn-monsters=false.
    - An option to have slow health heal you after a set amount of time after you take damage​
    - An option to heal you only when you are standing still (probably will be mutually exclusive of above option)​
    - Heal only when light is above a certain level​
    - Console controls to edit settings 'on the fly' (will support permissions)​
    - Suggest more please...

    Credits:
    - Code modified from Silence's SimpleGod code and Protected's SlowHealth 1.0.
    - Also credit to feverdream, Drakia, Edward Hand


    Change Log:

     
  2. Offline

    ACTruncale

    just 'slowhealth'
    there are no sub nodes.
     
  3. Offline

    snatch182

    when can we expect this one:
    - Fix the plug-in to work if properties is set to spawn-monsters=false.

    ?
     
  4. Offline

    bordensize

    Any chance you'd be willing to add health regen while sleeping? Like hop in a bed overnight, heal X amount of hearts. And/or add a degen of health when hit by a zombie, just for more realism for hardcore players, like 1/2 heart per second for 3 seconds for example. I know you said you wanted to keep it simple, but many possibilities. Just some ideas.
     
  5. Offline

    ACTruncale

    Still haven't figured that one out. I don't know if there is a way yet to overide or turn of the auto-heal in a peaceful world.

    I am working on the bed thing, but I just can't get it the way i like. I'll post it though once I get home.

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

    floid

    No compatibility with CB 733/1.5 client version?
     
  7. Offline

    ACTruncale

    Yes it works with 733

    Slow Health now heals after sleeping. I need more people to test this though. It should support multi-world settings. If you are upgrading from the old version add the line:

    sleep-heal:20

    to your settings files. I've only tested it on a single world and 2 users server.

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

    TheArcher

    Thanks for keeping this up to date and adding features, however the lowest amount it goes to is half a heart every second? I hardly consider that slow.
     
  9. Offline

    Shanie

    Going to test this on a 20-man server. Is there a downloadable config file I can edit so I don't have to take the server down, launch, turn off, edit, launch again?
     
  10. Offline

    ACTruncale

    When you run it the first time config files should be generated.

    If you set the regen-rate to 40 it will heal you every 40 secs. So you can make it VERY slow if you wish.

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

    valdark

    any chance we could get a version with different rates depending on altitude?

    And to make it above a certain altitude instead of below

    I am hoping to set this up to deal damage at high altitudes due to oxygen deprivation and wouldn't mind being able to add slow healing near sea level as well.
     
  12. Offline

    ACTruncale

    I don't know why I couldn't. It will take some re-thinking/re-tinkering on my part. I'll work on it soon.
     
  13. Offline

    valdark

    awesome thank you. I'd love to have extra options.... working great as intended btw
     
  14. Offline

    ACTruncale

    Good to hear! I tested it in my classroom today (shh don't tell my boss) and my students seemed to like it. I also am testing with them my personal land protection mod along with some other nifty ones. Expect a new mod release from me soon.
     
  15. Offline

    TheArcher

    Ah, from your explanation it seemed to be something different. Thank you for the clarification, fantastic plugin!
     
  16. Offline

    Benk016

    Hello, we love this mod, and have been waiting on an update for a while! we got the mod on our multiplay server from multiplay.co.uk and the heal after sleeping works great. however, regular healing does not work. we get he following error in the logs

    Code:
    011-04-30 02:11:32 [SEVERE] Exception in thread "Timer-0"
    2011-04-30 02:11:32 [SEVERE] java.lang.NullPointerException
    2011-04-30 02:11:32 [SEVERE]     at actruncale.SlowHealth.SlowHealth.handleHealth(SlowHealth.java:122)
    2011-04-30 02:11:32 [SEVERE]     at actruncale.SlowHealth.SimpleTimer.run(SimpleTimer.java:37)
    2011-04-30 02:11:32 [SEVERE]     at java.util.TimerThread.mainLoop(Timer.java:534)
    2011-04-30 02:11:32 [SEVERE]     at java.util.TimerThread.run(Timer.java:484)

    Our config file is this
    Code:
    regen-rate:30
    regen-amount:1
    regen-max:20
    regen-min:1
    regen-altitude:0
    sleep-heal:20
    
     
  17. Offline

    ACTruncale

    Humm... do you have permissions installed? Try deleting your config folder and let the mod recreate the files.
     
  18. Offline

    andrewkm

    Pleaes make work with spawn-monsters=false
     
  19. Offline

    joose

    We get the same on our server, though only if we use the /reload command.
    If you stop and start the server it works fine.
     
  20. Offline

    Benk016

    Yes we have permissions installed, i added
    - 'slowhealth'
    to our default group that everyone is in, i also tried adding it to each user and it doesn't work.
    our moderator group looks like this
    Code:
        Moderator:
            default: false
            info:
                prefix: ''
                suffix: ''
                build: true
            inheritance:
                - Default
            permissions:
                - 'slowhealth'
                - 'dropchest'
                - 'dropchest.create'
                - 'dropchest.list'
                - 'dropchest.which'
                - 'dropchest.remove'
                - 'dropchest.radius.set'
                - 'dropchest.filter'
                - 'whitelist.all'
                - 'elevators.operator'
                - 'bordergaurd.all'
                - 'bordergaurdlite.all'
                - 'bordergaurd.setborder'
                - 'bordergaurd.disableborder'
                - 'bordergaurdlite.setborder'
                - 'bordergaurdlite.disableborder'
    We still get the same severe errors in our logs and no health, except for when sleeping, that still works.
     
  21. Offline

    Phase

    The plugin version still reports as 3.0.1 in-game
     
  22. Offline

    Benk016

    Any help for us on this mod??
     
  23. Offline

    virtualism

    Works perfectly for me, thanks.
     
  24. Offline

    Xordaii

    Works great, no errors, thoroughly tested on my 740 server.
     
  25. Offline

    Αρρεν

    Yes it would better for just lying on the bed and regenerate health slowly
    Because sleeping through night working when ALL players sleeping
     
  26. Offline

    BeerDone

    A small problem which I did not like: apparently sleep healing only works if player's health is in the boundaries made by the plugin. I.E. if health only regenerates while being below 4 hearts, the sleep heal will not work if player's health is higher than this.
     
  27. Offline

    Krispy

    I have to vote with BeerDone. There should be an additional cap var for the sleep heal as I'd like to let my users only regen 3 hearts passively but regen all hearts in bed.
     
  28. Is it possible for you to make it work even though monsters are off? Cause that was the primary use i find for it =D
     
  29. I can't get this to work. I install the plugin into the directory. It creates the folder. I leave things as default, boot up the server and hurt myself. Nothing happens. I looked at the server.log and there were no errors. I have added "slowhealth" to the permissions. Any idea what I am doing wrong?
     
  30. Offline

    BeerDone

    Does it say "SlowHealth enabled" in the console log? Does your world name differ from default? If so, did you try renaming world.properties to your world's name? Is your world included in WORLDLIST.txt? There are 3 files there, you can't leave em default if your server is not default!
     
  31. Offline

    Del43

    Very cool plugin. Thanks a lot for that. Just a bit confusing, that the console output is version 3.0.1, the thread title 3.1 and the actual version 3.2.
     

Share This Page