[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. It deals with being underwater. Some air means that as long as the user isn't drowning (taking damage from being underwater too long) they will heal. Full air means that the user can't be healed if they are underwater holding their breath.
     
  3. Offline

    Stormbow

    I'm gonna keep an eye on this. If/when it's good for [953] and supports pools, I'll be on the bandwagon.
     
  4. Offline

    TruffleDucks

    Ohh... I thought it meant some water as in your standing in one block of water while the other half of your body is in the air.
     
  5. Offline

    Steelstiletto

    I've got the new healing water, but now I get errors when I reload the server:

    Code:
     22:49:48 [SEVERE] Error occurred while disabling HealingWater v1.3.2 (Is it up to date?): null
    java.lang.NullPointerException
            at nickrak.HealingWater.HealingWater.onDisable(HealingWater.java:40)
            at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:128)
            at org.bukkit.plugin.java.JavaPluginLoader.disablePlugin(JavaPluginLoader.java:878)
            at org.bukkit.plugin.SimplePluginManager.disablePlugin(SimplePluginManager.java:280)
            at org.bukkit.plugin.SimplePluginManager.disablePlugins(SimplePluginManager.java:273)
            at org.bukkit.plugin.SimplePluginManager.clearPlugins(SimplePluginManager.java:301)
            at org.bukkit.craftbukkit.CraftServer.reload(CraftServer.java:329)
            at org.bukkit.command.SimpleCommandMap$ReloadCommand.execute(SimpleCommandMap.java:281)
            at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:129)
            at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:290)
            at net.minecraft.server.MinecraftServer.b(MinecraftServer.java:480)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:465)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:361)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
     
  6. Offline

    nickrak

    That bug has been patched in 1.3.3.

    Working on adding pools now. Would people prefer pools be controlled by signs/blocks, or text commands? Poll link at the bottom, please vote on what you would like to see. It'll be up for at least 24 hours or if every contributor to the thread votes.

    http://micropoll.com/t/KEvGiZB3ll
     
  7. Offline

    feildmaster Retired Staff

    Text Command, all the way.
     
  8. Offline

    nickrak

  9. Offline

    feildmaster Retired Staff

    I was the first voter nickrak. =P
     
  10. Offline

    Baraddur

    Any chance for multi-world support?
     
  11. Offline

    nickrak

    It already has multi-world if you use Permissions.
     
  12. Offline

    jebbyderinger

    This would be a great plugin for a desert world if there was an option to require water to keep you alive. Make it somewhat true to life and require water at least once every three game days when the time is up your life runs out much like it does when you drown. Or tie it into the biome and have the water requirements based on the climate. To get really technical it could be based on physical exertion as well.

    I've seen hunger mods but water is even more important for sustaining life.
     
  13. Offline

    Cryt

    Hellow,

    The plugin does not work, I am not heal after when I go to the water. Here is my config:

    Code:
    # Healing Water Configuration.
    
    # healingDelay=[millisecond delay between consecutive healing]
    
    # healingAmount=[number of healts to heal]
    
    # healAirMode=[ HEAL_ALWAYS | HEAL_WITH_FULL_AIR | HEAL_WITH_SOME_AIR ]
    
    #
    
    # Defaults: healingDelay=500, healingAmount=0.5 ... heals half a heart every half a second, healAirMode=HEAL_WITH_FULL_AIR
    
    healingDelay=500
    
    healingAmount=1
    
    healAirMode=HEAL_WITH_FULL_AIR
     
  14. Offline

    feildmaster Retired Staff

    @Cryt : Does the server give any errors?
     
  15. Offline

    Cryt

    I have no error but nothing takes place when I am in the water..

    Oh if I have just seen an error appearing:

    Code:
    01:15:08 [SEVERE] Exception in thread "Thread-6"
    01:15:08 [SEVERE] java.lang.NoSuchMethodError: com.nijiko.permissions.Permission
    Handler.getUserObject(Ljava/lang/String;Ljava/lang/String;)Lcom/nijiko/permissio
    ns/User;
    01:15:08 [SEVERE]       at nickrak.HealingWater.HealingWater.run(HealingWater.ja
    va:159)
    01:15:08 [SEVERE]       at java.lang.Thread.run(Unknown Source)
    01:15:09 [INFO] [SH_v0.3.1] User 'Cryt:admins' created.
    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 16, 2016
  16. Offline

    nickrak

    Are you using Permissions 3.x?

    Updated for cb1000, looks like I'll be going with text-command based pools from the polls.

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

    Baraddur

    I'm sorry I did not realise. Still a bit new to server hosting. Loving this plug-in! [diamond]
     
  18. Offline

    Cryt

    I do not know how to know which version I use:/
     
  19. Offline

    nickrak

    On the server console, type "pr".
    If your using Permissions 2.x or later it should show you what version you are using.
     
  20. Offline

    Cryt

    I use permission 2.7.4:/
     
  21. Offline

    nickrak

    To use this plugin with permissions you have to update to 3.x
     
  22. Offline

    Cryt

    Thank you !
     
  23. By the way, is there any chance of you integrating the Superperms Bukkit permission system?
     
  24. Offline

    nickrak

    When the Bukkit Permissions become more popular or I get some free time to kill, I'll move all my plugins that use permissions over to the Bukkit Permissions system.
     
  25. It's actually beautiful how simple it is.

    The only thing I might see being a problem is your numbers on the permissions. Those would be difficult to translate unless you feel like checking for every number.
     
  26. Offline

    EliastheNewbie

    It would be really cool if you could add a function that lets you choose which water that should heal, because this is the plugin i was looking for. I'm making the "nectar of the gods palace" or something like that haha and it would be epic if the water in there could heal, but nowhere else
     
  27. Offline

    ChunkyM0nk3y

    permissions support pleesh?
     
  28. Offline

    nickrak

  29. Offline

    BR3TON

    Can you make it so that it only heals in certain water
    (eg. I could make a bath house where my players could go in and get healed but they wont be healed by just going in the sea)
     
  30. Offline

    riolu447

    Could you add support for Permissions Ex (PEX) please? It would be really helpful to my server, we love your plugin!
     
  31. Offline

    nickrak

    There is no easy way to use SuperPerms with this plugin due to to the numerical data stored in the permission, I'll look into a way around it, but it may require some extra setup time. I'll keep you posted.
     

Share This Page