[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

    EpicATrain

    I can't get this to work either. Here's my compile list:

    Code:
    2011-05-10 23:49:40 [INFO] Starting minecraft server version Beta 1.5_02
    2011-05-10 23:49:40 [INFO] Loading properties
    2011-05-10 23:49:40 [INFO] Starting Minecraft server on 69.197.188.226:25565
    2011-05-10 23:49:40 [INFO] This server is running Craftbukkit version git-Bukkit-0.0.0-706-gf53e007-b740jnks (MC: 1.5_02)
    2011-05-10 23:49:40 [INFO] Preparing level "OFFC"
    2011-05-10 23:49:40 [INFO] Preparing start region
    2011-05-10 23:49:41 [INFO] Preparing spawn area: 89%
    2011-05-10 23:49:42 [INFO] [BBROTHER] ------------------------------------
    2011-05-10 23:49:42 [INFO] [BBROTHER] Hello, and thank you for using the TESTING version of BigBrother!
    2011-05-10 23:49:42 [INFO] [BBROTHER] Please note that, since this is far from complete, there will be many bugs.
    2011-05-10 23:49:42 [INFO] [BBROTHER] IF YOU FIND ANY BUGS, PLEASE REPORT THEM ON http://bugs.nexisonline.net/bb
    2011-05-10 23:49:42 [INFO] [BBROTHER] Please stay tuned in irc.esper.net #bigbrother for updates and build notifications.
    2011-05-10 23:49:42 [INFO] [BBROTHER] ------------------------------------
    2011-05-10 23:49:42 [WARNING] [BBROTHER] Table bbdata uses the MySQL storage engine InnoDB.
    2011-05-10 23:49:42 [INFO] [BBROTHER] For optimal performance, we suggest changing to MyISAM via the following SQL statement:
    2011-05-10 23:49:42 [INFO] [BBROTHER]   ALTER TABLE bbdata ENGINE = MyISAM;
    2011-05-10 23:49:42 [INFO] [BBROTHER] Please note that, on many tables, this could take a very long time.
    2011-05-10 23:49:42 [INFO] [BBROTHER] BBData MySQL Driver r1 loaded!
    2011-05-10 23:49:42 [INFO] [BBROTHER] Permissions enabled using: Permissions v2.5.1
    2011-05-10 23:49:42 [WARNING] [BBROTHER] 'Help' isn't detected. No /help support
    2011-05-10 23:49:42 [INFO] [BBROTHER] BigBrother 1.8-SNAPSHOT (build #433) enabled!
    2011-05-10 23:49:42 [SEVERE] com/asdaarg/bukkit/NSCommand/NSCommand loading chatlog v0.2.1 (Is it up to date?)
    java.lang.NoClassDefFoundError: com/asdaarg/bukkit/NSCommand/NSCommand
        at com.asdaarg.bukkit.chatlog.chatlog.onEnable(chatlog.java:106)
        at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:127)
        at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:632)
        at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:218)
        at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:116)
        at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:94)
        at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:217)
        at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:204)
        at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:144)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:259)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)
    Caused by: java.lang.ClassNotFoundException: com.asdaarg.bukkit.NSCommand.NSCommand
        at java.net.URLClassLoader$1.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(Unknown Source)
        at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:36)
        at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:24)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        ... 11 more
    2011-05-10 23:49:43 [INFO] Loaded Essentials build 2.2.8 maintained by Zenexer, ementalo, Aelux, Brettflan, KimKandor, snowleo and ceulemans.
    2011-05-10 23:49:43 [INFO] Loaded EssentialsChat build 2.2.8 by Zenexer, ementalo, Aelux, Brettflan, KimKandor, snowleo and ceulemans.
    2011-05-10 23:49:43 [INFO] GroupManager - INFO - Scheduled Data Saving is set for every 10 minutes!
    2011-05-10 23:49:43 [INFO] GroupManager version 1.0(alpha-5) is enabled!
    2011-05-10 23:49:43 [INFO] Fake Permissions version 2.5.1 is enabled!
    2011-05-10 23:49:43 [INFO] Loaded EssentialsSpawn build 2.2.8 maintained by Zenexer, ementalo, Aelux, Brettflan, KimKandor, snowleo and ceulemans.
    2011-05-10 23:49:43 [INFO] [NoCivilSpawns] OFFC - Enabled options:  QuickTest GoldBlocker IronBlocker DiamondEnabler
    2011-05-10 23:49:43 [INFO] [NoCivilSpawns] - 1.4.2 by Sleaker is enabled!
    2011-05-10 23:49:43 [INFO] NoThanks is properly working.
    2011-05-10 23:49:43 [INFO] [Filter] Successfully compiled regex: ass
    2011-05-10 23:49:43 [INFO] [Filter] Successfully compiled regex: f+u+c+k+
    2011-05-10 23:49:43 [INFO] [Filter] Successfully compiled regex: w+t+f+
    2011-05-10 23:49:43 [INFO] [Filter] Successfully compiled regex: hell
    2011-05-10 23:49:43 [INFO] RegexFilter version 1.04 is enabled!
    2011-05-10 23:49:43 [INFO] [Residence] Found Permissions Plugin!
    2011-05-10 23:49:43 [INFO] [Residence] iConomy 5+ NOT found!
    2011-05-10 23:49:43 [INFO] [Residence] Loaded Residences...
    2011-05-10 23:49:43 [INFO] [Residence] Enabled! Version v2.0 by bekvon
    2011-05-10 23:49:43 [INFO] SimpleCensor version 0.2.3 enabled!
    2011-05-10 23:49:43 [INFO] [SlowHealth] version [3.0.1] (actruncale) is loaded.
    2011-05-10 23:49:43 [INFO] Done (0.279s)! For help, type "help" or "?"
    2011-05-10 23:49:45 [INFO] [BBROTHER] Cleaned out 0 records because of age in 0h00m00s.
    2011-05-10 23:49:46 [INFO] EpicATrain [/24.160.198.78:50884] logged in with entity id 77
    2011-05-10 23:50:05 [INFO] EpicATrain issued server command: autoheal on
    2011-05-10 23:50:10 [INFO] ยง9[PLAYER_COMMAND] EpicATrain: /heal auto
    
    I've tried everything you suggested and this plugin does not work at all.

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

    Del43

    Clearly you are doing something wrong or got some sort of conflict with another plugin. The "autoheal on" and "/heal auto" in your log are amusing tho. :D

    Really? If monsters are off, you get very high health regen by default (no plugin needed). I'm curious how you find the primary use of this plugin in that situation. Please do tell.
     
  4. Offline

    EpicATrain

    blah. This is tiresome.
     
  5. Offline

    valdark

    It shows that it loaded. Can you post your config? I am running it on version 740 of craftbukkit as well. One thing to note is that although he states in the thread that 0 is sea level and 64 is max height, I found this to be incorrect when running build 740. I use 0 for bedrock and 128 for max ceiling with 64 as sea level and everything works as intended.
     
  6. Offline

    killervalon

    Because i want it to make sense to eat food WITHOUT monsters it is a RP server afterall. Plus you can't eat cake.. with full life.
     
  7. Offline

    EpicATrain

    I found the problem. I never added myself to the admin permissions. Once I added myself, everything worked fine. Blah, I don't even need it anymore. :(
     
  8. I will look into this tomorrow.
     
  9. Offline

    valdark

    So are you trying to use this to cause damage?
     
  10. Offline

    Sphax

    Please, would it be possible to add an option to set if the player should be indoor AND/OR outdoor to get healed/damaged ?

    To detect if the player is indoor or outdoor, the system should simply check if there is a block above the player (10-20 blocks above him - may be also configurable).
     
  11. Offline

    valdark

    Interesting idea what are you planning to use such an option to simulate?

    Also you gave me an idea... would it be possible to add a weather event trigger to this with a separate config? I am currently using this to cause damage at extreme altitudes on one of my worlds and would like to add acid rain to the mix.
     
  12. Offline

    Sphax

    I would like to create a wasteland world with a sun at very high temperature. :)
     
  13. Offline

    valdark

    Ah, well then that definition of Inside works........ It wouldn't make as much sense for a cold or gas.

    Are you going to have this world set to eternal day or are you going to be disabling this plugin during the night?
     
  14. Offline

    Sphax

    hum... I don't have any thing to set it to eternal day... But I would like constant thunder+sun+damages+mobs. Currently I have thunder, damages and mobs (the players must go below 30 to not get damages). If I set it to eternal day, I will not get any mob I think...
    Something which could be nice to set would be some damages indoor/outdoor and below/upper than defined altitudes.

    Something like that :
    Code:
    <name of damage>:
        - alt-min:X
        - alt-max:X
        - health-indoor:true/false
        - health-outdoor:true/false
        - health-rate:X
        - health-amount:X
        - health-max:X
        - health-min:X
        - sleep-heal:X
    
    For example, we can set something for SUN damage like that:
    Code:
    Sun damage:
        - alt-min:40
        - alt-max:127
        - health-indoor:false
        - health-outdoor:true
        - health-rate:5
        - health-amount:-1
        - health-max:20
        - health-min:1
        - sleep-heal:10
    
    A lot of things could be set to allow regen or damages in some specific conditions.

    I would applause if you could do that ACTruncale.
     
  15. Offline

    tassox33

    Will you be adding health to the player, or the ability to manage dmg from mobs or health of mobs? smpDifficulty is failing hard at updates. Do you know of another mod that does this?
     
  16. Offline

    killervalon

    No, infact i want it to limit the amount of health being given, so that you can for example maximum get a specific amount of hearts, and then you have to eat to get the rest.
     
  17. Offline

    Maxis010

     
  18. Offline

    killervalon

    I stated earlier, WITH MOBS OFF
     
  19. Offline

    Maxis010

    Get multiverse, turn mobs on in your server properties (AKA peaceful mode off) and mobs off in the multiverse worlds config (blocking all hostile mob spawn)
    Now set regen limit of your choice and enjoy
     
  20. Offline

    DylanP

    How do I disable health regeneration? Quote my post or @ me so I get a notification!
     
  21. Offline

    Maxis010

    Be more specific, do you want to disable peaceful mode regeneration, this plugin regenerating globally (if so what do you want it for), the more info you give us the more helpful we can be
     
  22. Offline

    DylanP

    Yes, I want to disable peaceful mode regeneration. Can I do that without this plugin?

    This plugin crashed my server. It caused everyone to be kicked out, and the console was spitting out Read timed out.
     
  23. Offline

    Maxis010

    Turn mobs on in your server.properties
    Install MultiVerse
    Turn mobs off in worlds.yml
    Done

    Did you try running just SlowHealth on your server to confirm those errors are from this plugin or did you just install it and assume the errors came from SlowHealth
     
  24. Offline

    Kyu

    Is it possible to set auto-healing to selected cuboids? I would like to make it so the "spawn temple" I have set on my server, auto heals players that walk into it
     
  25. Offline

    Maxis010

    Get another plugin to handle this, if you have MySQL support I would recommend precious stones
     
  26. Offline

    ACTruncale

    I am still here by the way. Thank you Maxis010 for answering everyone's questions!

    I've checked this with the latest build and it still works. Let me know if there are any problems.
     
  27. Offline

    drackbolt

    Great job. Looking forward to the light-level update! Would be awesome if we could set different values for light and dark; healing in the light, damage in the dark, for instance...
     
  28. Offline

    MrPendulum

    Hi ACTruncale, you seem to have missed updating the threat title to reflect the latest version.

    Plugin works great, btw :)
     
  29. Offline

    Frex

    Hello, how to set the plugin to heal slower. Now i heal like the peaceful, but i want to heal half heart for example 5sec
     
  30. Offline

    kyfwana

    Is it possible to have this plugin heal a player to beyond 20 half-hearts? Is it possible to have the plugin heal more frequently than 0nce per second, for example: 0.5 seconds?
     
  31. Offline

    Maxis010

    Try regen-rate: 5

    Try setting regen-max over 20
    At this time, no best you can do is increase the regen amount per second
     

Share This Page