[MECH] HealingWater 1.6 - Gain health in water [R3]

Discussion in 'Inactive/Unsupported Plugins' started by nickrak, Jun 11, 2011.

  1. Offline

    nickrak

    HealingWater - Gain health in water
    Version: 1.6

    Adjustable health gain by being in water. Variable rate of health gain, and health gain amount, can be configured to cause damage in water.

    Features:
    • Heals any player whose feet are in water.
    • Adjustable healing rate and amount.
    • Negative heal amount for damage.
    • All of the above but with Lava as well!
    Configuration:
    Configuration file is gone, everything is in permissions now.

    Permissions: (uses SuperPerms)

    Code:
    #Permission nodes are additive, if you group heals 2
    #but the user damages by three, you will take one damage in water.
    #Without permissions, HealingWater will default to the config file.
    #Please note that having the permission '*' does nothing for this plugin.
    #The healingDelay still comes from the config file.
     
    - healingwater.heal.1        # heals one half-heart per second in water
    - healingwater.heal.10      # heals ten half-hearts per second in water
    - healingwater.damage.10    # damages ten half-hearts per second in water
     
    - healingwater.lava.heal.1 # heals on half-hear per second in lava
    - healingwater.lava.damage.10 #damages ten half-hearts per second in lava
     
    #By default you will heal as long as you have air left.
    #There are nodes to change this.
     
    #The aquatic node makes you heal when you have no breath left.
    - healingwater.mode.aquatic
     
    #The hydrophobic makes you not heal when underwater, hydrophobia takes precedence over aquatic
    - healingwater.mode.hydrophobic
    
    Download Jar
    Github

    If you have feature requests, or bug reports, you 'can' post them here but I would really appreciate those with GitHub accounts post them on the GitHub issues page.

    Licensed under: Creative Commons 3.0: Attribution, Non-commercial, Share-Alike
    [​IMG]


    To-Do List:
    • Selective healing water by standing in a pool.
    Change Log:
    Version 1.6
    • Updated to R3.
    • Updated to new Bukkit Event system.
    Version 1.5
    • Now uses Bukkit Scheduler.
    • Fixed onReload issue.
    Version 1.4.3
    • Added checks for vehicles.
    Older Versions:
    Show Spoiler
    Version 1.4.2
    • Added support for lava
    Version 1.4.1
    • Fixed NullPointer when /reload is used while players are logged in.
    Version 1.4
    • Changed Permission system to SuperPerms.
    • Removed config file.
    • Pushed to GitHub
    Version 1.3.3
    • Bug Fix: exception on plugin disable caused by unneeded code.
    Version 1.3.2
    • Bug Fix: players logged in during a /reload will act as expected.
    Version 1.3.1
    • Updated Bukkit dependency to version used in CB935.
    Version 1.3
    • Added permission, with variable heal amount per group/user.
    Version 1.2
    • Fixed crash bug when negative healing caused death.
    Version 1.1
    • Added Air mode to change the healing behavior while unable to breath.
    Version 1.0
    • Initial Release
     
  2. right now you cannot make a certain pool or lava / water to make it healing pool? does this change every water in the world and every lava in the world if i use it?
     
  3. Offline

    nickrak

    The reload issue I think has something to do with the way I cache permissions. I've got a working fix for that, also took the opportunity to move away from the old thread management to the bukkit scheduler, should improve stability if there were any issues before.

    I'm not yet sure how I want to implement ignoring lava. There were a couple options, I was looking into.
    • Turn off lava damage completely, while this plugin is enabled (make healingwater.lava.damage.3 a default)
    • Turn off lava damage for players who have a permission node to ignore lava (healingwater.lava.ignore)
    • Turn off lava damage for players who have any lava nodes defined (healingwater.lava.damage.0)
    • Turn off lava damage for players who have a non-net-zero lava heal/damage value (healingwater.lava.heal.1, healingwater.lava.damage.1: would result in taking standard lava damage)
    I'm open to any of the above possibilities.

    Right now there are no pools, any change applies to the entire world. Pool support can be added now if you have a region-based permission plugin. Support for pools will require a rewrite of most of the code so that won't be happening till the next major release.

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

    1cec0ld

    This is my vote. Good luck with your work!
     
  5. Offline

    Kylefraser

    wait do we have to set a sertan place where they can heal or they can heal on all water?
     
  6. Offline

    nickrak

    Please read Post #99, Semirotta asked the exact same question.
     
  7. Offline

    Kylefraser

    Oh okay thanks, cant wait till next release then
     
  8. Offline

    Shayds

    Loads up but doesn't heal at all, useless
     
  9. Offline

    nickrak

    Are you using the newest version from GitHub? What permissions did you give yourself?
     
  10. Offline

    1cec0ld

    I resent this statement, it works perfectly for me, don't give up hope in it after just one attempt!
     
  11. Offline

    1cec0ld

    I love those 1 sentence haters, don't you?
     
  12. Offline

    Mausterio

    Im also having some problems with this plugin. It loads up fine and i have the permissions set but has no affect. I have tried on several of my accounts op and non-op and non seem to have worked. I'll try redownloading and see if that fixes my issues.
     
  13. Offline

    nickrak

    If you post your configuration file, I'll read through it and see if I can find out why it's not working for you.
     
  14. Offline

    1cec0ld

    nickrak
    Alright, welcome back from the dead!
    It's been a month, and my server is finally back up and running, with final bugtesting. And, I have bad news, I found a bug.
    CB 1840, Healingwater 1.5, PEX as always, and my problem is thus:
    I have the same old Fire and Water Groups that are involved.
    Fire has healingwater.damage.2 and healingwater.lava.heal.2
    Water has healingwater.heal.2

    The water heals Water.
    The lava heals Fire.
    The water does NOT damage Fire. It performs the impact action and creates a flash on the health bar, but it doesn't actually subtract a heart. I've tried damage.2 damage.4 damage.50 and damage.20 with only 50 doing absolutely nothing (for obvious reasons) So I don't know if there's some new update with 1.1 that broke that particular aspect or not, but I'll keep looking into my plugins and try removing others to test it.

    Hope you had a happy holiday, and welcome back.
     
  15. Offline

    nickrak

    1cec0ld I haven't looked at the new RB at all yet, I'll take a look at it this weekend. I've heard a lot has changed some issues with blocks all being AIR on certain updates. Thanks for the heads-up, I'll look into it.
     
  16. Offline

    1cec0ld

    YAY someone responded! I've sent help requests for like 4 of my plugins, and I was just about to lose hope on all of them... Thanks!
     
  17. Offline

    nickrak

    I've update to the new bukkit version system and ran a few basic tests using what I think you have your perms set as. Let me know if you run into any other issues, next time just post the perms file because having groups named fire and water is really confusing.
     
  18. Offline

    Kylefraser

    umm it be very nice if you can set the position of a place that the water heals only on a certain place like a church or something.
     
  19. Offline

    nickrak

    Location-specific stuff has been suggested several times but that doesn't really mesh with the existing permissions scheme. I don't have a ton of time to add that at the moment, but it would probably be better suited as a separate plugin.
     
  20. Offline

    1cec0ld

    Ok, I just had a crazy Idea. What if you made a change (or maybe even a new plugin?) for ANY walk-able block to heal you in exactly the same way. like healingBlocks or something.
    So exactly what you have here, only adding Reeds, Wheat, Cobweb, Lava, Fire, Water, (insert any block you can walk in/through here)
    If you did add it here, I'd suggest removing the default healingwater.heal.# and making it healingwater.water.heal.# as you did with lava.
    Just something I thought about as I was considering effects for modDamage, another plugin I'm using.


    1.6 had the same effect as 1.5, being the impact+flash occurred, but no heart was removed.
    Code:
    groups:
        Ether:
            default: true
            permissions: null
            suffix: ' of &8Ether'
        defaulto:
            permissions:
            - essentials.spawn
            - essentials.signs.use.warp
            - essentials.msg
            - essentials.me
            - essentials.afk
            - essentials.compass
            - essentials.depth
            - essentials.help
            - essentials.helpop
            - essentials.list
            - essentials.mail
            - essentials.mail.send
            - essentials.rules
            - essentials.seen
            - essentials.suicide
            - essentials.clearinventory
            - essentials.ping
            - mcmmo.ability.*
            - mcmmo.commands.party
            - mcmmo.chat.partychat
        Fire:
            inheritance:
            - defaulto
            permissions:
            - healingwater.damage.3
            - essentials.warp.fire
            - mcmmo.skills.woodcutting
            - mcmmo.skills.swords
            - mcmmo.skills.unarmed
            - mcmmo.skills.axes
            - mcmmo.skills.repair
            - healingwater.lava.heal.1
            - magicspells.grant.combust
            - magicspells.grant.fireball
            - magicspells.grant.pain
            - magicspells.grant.flamewalk
            suffix: ' of &4Fire'
        Water:
            inheritance:
            - defaulto
            permissions:
            - essentials.spawn
            - essentials.warp.water
            - mcmmo.skills.herbalism
            - mcmmo.skills.swords
            - mcmmo.skills.archery
            - mcmmo.skills.taming
            - mcmmo.skills.fishing
            - healingwater.heal.1
            - magicspells.grant.crippple
            - magicspells.grant.geyser
            - magicspells.grant.pain
            - magicspells.grant.prayer
            - magicspells.grant.wall
            - magicspells.grant.frostwalk
            suffix: ' of &1Water'
        Earth:
            inheritance:
            - defaulto
            permissions:
            - essentials.home
            - essentials.warp.earth
            - mcmmo.skills.herbalism
            - mcmmo.skills.mining
            - mcmmo.skills.excavation
            - mcmmo.skills.swords
            - mcmmo.skills.axes
            - mcmmo.skills.unarmed
            - mcmmo.skills.taming
            - mcmmo.skills.repair
            - magicspells.grant.disarm
            - magicspells.grant.entomb
            - magicspells.grant.lifewalk
            - magicspells.grant.lightwalk
            - magicspells.grant.reflect
            - magicspells.grant.stealth
            - magicspells.grant.stonevision
            suffix: ' of &2Earth'
        Air:
            inheritance:
            - defaulto
            permissions:
            - essentials.spawn
            - essentials.warp.air
            - mcmmo.skills.herbalism
            - mcmmo.skills.swords
            - mcmmo.skills.archery
            - magicspells.grant.blink
            - magicspells.grant.forcepush
            - magicspells.grant.foretoss
            - magicspells.grant.leap
            - magicspells.grant.lightning
            - magicspells.grant.carpet
            - magicspells.grant.haste
            - magicspells.grant.lifewalk
            - magicspells.grant.walkway
        Admin:
            permissions:
            - '*'
    users:
        1cec0ld:
            group:
            - Fire
        oddyguy:
            group:
            - Water
        Gilguy4437:
            group:
            - Admin
        Zombiedood:
            group:
            - Air
    
    Thanks for any help, PM if you want to join the server to test.
     
  21. Offline

    1cec0ld

    nickrak Did I need to tag you? I'm not sure...

    Note: I think the damage was applied AFTER I started Drowning, because I noticed my health dropping way too fast but only after my air bubbles ran out.
     

Share This Page