[MISC] WheatHeal v2.0.1- Heal your friends by hitting them with Food! [1.1-R4]

Discussion in 'Inactive/Unsupported Plugins' started by Numenorean95, Jun 25, 2011.

  1. Offline


    Wheat Heal
    Current Version: 2.0.1​

    Ever wished you could heal your friends? Now you can with WheatHeal! Left click any player with wheat (or anything else), and they will be healed (by default) half a heart, while costing you one piece of wheat. Now with customisable values, ingame commands, permissions support, and Tools!

    Version 2.0.1 has been released fixing the null pointer error from 2.0 .

    WheatHeal version 2.o is out!
    With the addition of Tools, and support for Minecraft 1.8, alot of changes have been added with this update.

    We now are on BukkitDev! Go to http://dev.bukkit.org/server-mods/wheatheal/ to get help, information, and get alternate links to downloads.

    As always, put WheatHeal.jar in your plugins directory, and start Bukkit. It should work without any initial configuration. To change how much each food heals, however, edit WheatHeal/config.yml in your plugins folder. there you can also choose which foods are enabled, as well as which Permissions plugin to use. An example Configuration:
    Show Spoiler

    # WheatHeal Configuration File
    # Foods each have two values: healValue and enable
    # healValue decides how much a person is healed by (yes it can be negative...)
    # and enable is whether it will trigger the healing event.
    # If set to false, it can be used like normal, hitting people to do damage.
    # All heal values are in half hearts, therefore 10 equals five hearts.
    # Remember, YAML rules apply; Do not use Tabs!
            healValue: 3
            enable: true
            healValue: 3
            enable: true
            healValue: 10
            enable: true
            healValue: 7
            enable: true
            healValue: 7
            enable: true
            healValue: 2
            enable: true
            healValue: 5
            enable: true
            healValue: 3
            enable: true
            healValue: 4
            enable: true
            healValue: 20
            enable: true
            healValue: 4
            enable: true
            healValue: 10
            enable: true
            healValue: 8
            enable: true
            healValue: 6
            enable: true
            healValue: 7
            enable: true
            healValue: 1
            selfHeal: true
            enable: true
            healValue: 8
            enable: true
    # Decides how much health a player can be healed (yes, in such a way people can get more than 20 health)
    MaxHealth: 20
    # Whether to heal people directly or fill the food bar. False designates food bar filling.
    DirectHeal: false
    # Which permissions to use. Uses Permissions by default, set to true for bukkitPermissions
        useBukkit: false
    # Custom Tools:
    # Here you can define special tools to heal that WhatHeal will recognize.
    # Example tool:
    # Tools:
    #           Wool:
    #                   id:
    #                   type: 1
    #                   healValue: 5
    #                   damageTaken: 4
    # The first number is the id number of the item
    # The second number is the type. This can either be one or two.
    # One will make one of each of the item [U]dissappear[/U] when used to heal.
    # Two will make the tool take damage, eventually being destroyed.
    # The third is the heal value, same as before.
    # Fourth is the amount of damage a tool of type 2 will take.

    Note that the quantities are in half hearts.
    Show Spoiler

    /wh reload
    Permission: 'WheatHeal.commands.reload'
    Reloads the configuration file.
    /wh restore
    Permission: 'WheatHeal.commands.restore'
    Resets all values to default.
    /wh edit
    Permission: 'WheatHeal.commands.edit'
    Changes a value.
    /wh edit [item] [amount] - Sets the amount an item heals
    /wh edit [item] [true|false] - Dis- or Enables the given item

    /wh get
    Permission: 'WheatHeal.commands.get'
    Gets a value
    <no command>
    Permission: 'WheatHeal.heal'
    Allows player to heal others

    Currently implemented foods:
    • Wheat
    • Pork
    • Cooked Pork
    • Fish
    • Cooked Fish
    • Bread
    • Cookie
    • Apple
    • Golden apple
    • Mushroom stew
    • Red and Brown Mushrooms
    • Cake! (this.[cake] != Lie )(unless of course i am lying:))
    To do list:
    • Water buckets
    Known Problems:
    • None!
    Changelog (open)

    Version 2.0.1
    • Fixes NPE
    Version 2.0
    • Added tools! Create them in the conf by the specifications of the directions, and have personalised healing tools!
    • MC 1.8 Support, it now feeds people by default, though you can still go back to the old methods byt changeing the correct conf Node.
    Version 1.2
    • Fixed API, will be creating a tutorial for hooking in very soon.
    • Annotated conf! TO get the latest version you will need to delete your old config.yml file.
    Version 1.1
    • Added get, edit, restore, and reload commands
    • Added API
    • Throw an egg, and they're healed!
    • Heal yourself with wheat (same as healing others with wheat)
    Version 1.0
    • New permission! To heal you now must have the wheatheal.heal permission!
    • Fixed infinite heal with one item
    Version 0.4
    • Added Milk, eggs, sugar, and sugarcane
    • Fixed a bunch of errors in 0.3
    Version 0.3
    • Added Cake and Mushrooms
    • Small fixes
    Version 0.2
    • Added Pork, fish, Bread, Coookies, Apples, and Mushroom Soup.
    • Mushroom Soup returns a bowl
    • Added "/wh reload" command
    • Config file now has controll over which foods are used and what they heal.
    • You cannot heal people beyond ten hearts now
    • Added permissions/Bukkit Permissions support
    Version 0.1 (initial release)

    Very special thanks to @EdTheLoon and @Lathanael who are both collaborating on this plugin.

    Also thanks to @BR_ , who helped me develop this plugin.

    Source Code

    Old versions:
    2.0(CB: 1185)
    1.2(CB: 1060)
    0.1 (CB: 1000)
    JohnEBH likes this.
  2. Woohoo!

    Now we can start heal each other properly!
  3. Offline


    Version 0.2 is out! Along with many more foods has come a more complex configuration system, Permissions support, and in-game reloading of the conf file. As most of the difficult parts have now been finished, i am taking requests for new plugin features.
  4. *hint*

    You might want to change the thread title to v0.2 ;)
    And so far the plugin works as expected !
  5. Offline


    Good, thank you, thought of everything BUT the title of course.
  6. Offline


    please add mobarena support this would be killer to add to a healer class
  7. Offline


    It already supports it, since it works independantly of it. In a mobarena game you should be able to heal others just fine. Try it
  8. Offline


    i tried it and couldn't get it to work so i installed magic spells and the healing worked perfect so i kept it installed.
  9. Offline


    Ok, i will try to not blow my head off.
    1. What is your point? Why are you telling me this?
    2. Obviously i dont care if you do not appretiate the point of this plugin
    3. I distinctly remember that you never told me somthing was wrong.
    I cannot fix a problem i dont know of, and I dont even know why in the name of minecraft you are telling me this.

    Version 0.3 is finished!

    See above for download links!

    Though not a big update, this one has added several more foods, i believe now having added all of them (until Minecraft adds more).

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


    Maybe you should change the title to 0.3 :)?
  11. Offline


    Would be cool if we could control who can heal ppl with permissions. So if i only want certain group or maybe certain class to be able to heal like this.
  12. Offline


    Permissions was implemented in version 0.2.

    Edit: Ah looks like they're gone now.
  13. Offline


    Argh, not again :mad: Thanks!

    Permissions was implemented just for the command i believe, I will add it for the healing soon.
  14. Offline


    Since you're adding milk... How about water buckets? We need to stay hydrated. :p
    Additional effect: Douses the player if they're on fire.
  15. Offline


    Hmm, excellent idea! I will add it to the Todo list
    JohnEBH likes this.
  16. Offline


    Advertising on threads other than your own isn't polite.
    EdTheLoon likes this.
  17. Offline


    My players don't loose their food when they heal each other
  18. *COUGH*
  19. Offline


    I'v said that because the "(?)" at the end.
  20. Offline


    Thanks for telling me, i wasnt sure if i were dreaming the problem or not. Is that only the case when they hae one left, or at all times?
  21. Offline


    brilliant thought! what about if a player is hit with a thrown egg it heals them too?
    granted... it might mess with other egg plugins potentially depending on how they work (don't know any off the top of my head)
  22. Offline


    One food ? Yes
  23. Offline


    Hmm, well that should be possible. Based on my current understanding that should already work, but i am not sure now that i think about it. Anyway, i can set it up so that it defers to egg plugins where eggs are considered.
  24. Offline


    This also occurs on our server. It only happens when the healing players has 1 left of the item. It will consume all the other items in the stack but not the last. They are able to continue to heal with the one item, but it never takes it away.
  25. Offline


    Hmm I can't get it working. What did I miss?
  26. Offline


    What did you hit?
  27. Offline


    Do I need any Permission to heal other?
    I just put WheatHeal into Pulgin folder.
  28. Currently not.

    Did you hit a palyer or an animal?
  29. Offline


    A player.
    Dunno why it won't working. Using CB1000 and plugin runs without error.
  30. Offline


    Hmm, it should work as sson as you do that. Sorry about the short message, i only had 5 seconds. Has it generated a conf file? And are there any errors in the console?
  31. Offline


    Did it make a conf?

Share This Page