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

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

  1. Offline


    SlowHealth v3.2.0

    Download: SlowHealth.jar
    Source included in JAR


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

    - 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

    - 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.​

    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...

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

    Change Log:

  2. Offline


    It would be nice to have the config seperate from the server properties as well.
  3. Offline


    It seems that the plugin reads the configuration from the server.properties file, even if you start bukkit with a different configuration file. If the configuration was in its own file, and had support for multiple worlds, it would be very convenient.
  4. Offline


    Is there an alternative to this since it has become inactive?
  5. Offline


    It still works, development has just ceased for now.
  6. Offline


    Ok. I am working on implementation of multi-world support. Expect an update shortly.

    Other features I will work on are:
    • GDorn's Min-altitude (well it's done for me already)
    • an option to have slow health heal you after a set amount of time after you take damage
    • on option to heal you only when you are standing still (probably will be mutually exclusive of above option)
  7. Offline



  8. Offline


    When I switch worlds using MultiVerse I get an Exception

    17:11:43 [SEVERE] Exception in thread "Timer-0"
    17:11:43 [SEVERE] java.lang.ArithmeticException: / by zero
    17:11:43 [SEVERE] at actruncale.SlowHealth.SlowHealth.handleHealth(SlowHealth.java:113)
    17:11:43 [SEVERE] at actruncale.SlowHealth.SimpleTimer.run(SimpleTimer.java:37)
    17:11:43 [SEVERE] at java.util.TimerThread.mainLoop(Timer.java:512)
    17:11:43 [SEVERE] at java.util.TimerThread.run(Timer.java:462)

    After the Exception healing no longer works.

    Other wise this seems to work.

    Thanks for all your hard work
  9. Offline


    What are your settings for the other world?

    My guess is you put the regen-rate at 0 if so I'll need to fix that.

    Ok I fixed the divide by zero error. Re-download and it should work.

    I'd like this thread moved out of inactive so i can get testing and add features

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


    if this gets permissions this will be amazing. would love to use this for VIPs
  11. Offline


    Yes one of my world settings was set to 0. I tried it out and it seems to work now.

    Thanks for fixing it so quickly.
  12. Offline


    Yeah I am working on that as we speak. I am just having a little problem getting it to work. Since I believe permissions is used more for commands, but I'll get it done.

    I don't use permissions (I wrote my own, easier for me) so it is taking a little trial and error.

    Permission support now done!

    Use the node 'slowhealth' for anyone you want to be affected by the plugin. Also if you don't use permissions it will work for everyone else on the server. YEA!

    You got your wish :) SlowHealth supports Permissions

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


    this is super awesome. and to have different worlds have different settings.
    here's one thing i can't accomplish with the way its setup now - which some people might want in future.

    say for example you want to heal your VIPs when they are in their special world. Ok easy enough. But you want to make it so that EVERY player on the server is taking slow damage when they are in the nether world. if you give everyone the permission, they will all get treated equally. is there a way to have a different setting per group AND per world? i know that gets complicated. and i'm not even saying i need that. but while we're talking...

    another thing is you allow the altitude to determine the health on/off. but what if you wanted a Group to actually heal below the surface, and not above the ground?

    ever read The Time Machine? hehe

    it would just open up some really neat posibilities with a "race" kind of server if like, molemen were at home beneath the surface, and land-dwellers were at home above it. more options, if not a major pain to do, would be really neat for some servers, i would imagine.
  14. Offline


    I like your ideas. I think I might have a way for [1] to work and I am planning to have [2] in a future update. Test it all out and let me know if there are any bugs.
  15. Offline


    How do i use this plugin to disable Ahuto Healing (mobs off) ?
  16. Offline


    Still haven't found a hook yet to turn off auto heal on peaceful. If anyone has an idea lets try to figure it out.
  17. Offline


    2.3 still works lol, didn't realize this has been updated.
  18. Offline


    Yeah I updated because people wanted multi-world support and permissions. I might support a simple version of SlowHealth as well.
  19. Offline


    Multiworld's nice, though I suppose long as it also works without any permissions plugins it'll be fine.
  20. Offline

    Josh Sagnella

    I can't seem to get this working with EssentialsGroupManager
    Giving regulars the node slowhealth.* and they don't seem to regen.
    Admins with * work though
  21. Offline


    Is there a value that slow health will not let the player go below?

    Like if you fall from max height to bedrock the player ends up with half a heart?

    To above its just slowhealth no (.*) after it
  22. Offline


    Does this heal tamed wolves?
  23. Offline


    No though I will be making another mod to heal them if someone else doesn't first. I am not sure if the hooks for getHealth and setHealth are for wolfs yet.
  24. Feature Request:
    I would like to be able to change the healing parameters while a player is sleeping. Right now, players heal very slowly on my server (half a heart every 30 seconds), up to half health. When they sleep, I would like it to regenerate faster and all the way up to full. Bonus, if it can detect night skipping and heal them all the way up to the max setting when night is skipped.
  25. Offline


    can u add option: player regenerate all health after sleep (only) no day gerenerate, (only after sleep)
  26. Offline


    This still works in CB 670-671, MC 1.4, etc. You may want to update the OP. I just installed this on a whim to see if it worked, and it is working flawless. Thanks for the great work.
  27. Offline


    Still working for me on 677.

    Please don't let this plugin die, it's fantastic. :)
  28. Offline


    will do... done!
  29. Offline


    Good job so far!
    Feature request:
    - optional quicker regeneration while lying in a bed
  30. Offline


    Yeah I'm working on bed regeneration as we speak. I am hoping to have it up by tomorrow
  31. Offline


    For permissions, it'd be somewhat like

    - 'slowhealth.*'


Share This Page