[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

    Numenorean95

    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!
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    News/Announcements:

    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.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    Installation:
    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

    Code:
    # 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!
    #
    #
    
    Foods:
        Sugar:
            healValue: 3
            enable: true
        Bread:
            healValue: 3
            enable: true
        Cake:
            healValue: 10
            enable: true
        Milk:
            healValue: 7
            enable: true
        Cookie:
            healValue: 7
            enable: true
        [U]Sugarcane[/U]:
            healValue: 2
            enable: true
        Apple:
            healValue: 5
            enable: true
        RawPork:
            healValue: 3
            enable: true
        RawFish:
            healValue: 4
            enable: true
        GoldenApple:
            healValue: 20
            enable: true
        Egg:
            healValue: 4
            enable: true
        MushroomStew:
            healValue: 10
            enable: true
        CookedFish:
            healValue: 8
            enable: true
        BrownMushroom:
            healValue: 6
            enable: true
        RedMushroom:
            healValue: 7
            enable: true
        Wheat:
            healValue: 1
            selfHeal: true
            enable: true
        CookedPork:
            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
    
    #NOT IMPLEMENTED
    # 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
    Permissions:
        useBukkit: false
    
    # NOT YET IMPLEMENTED:
    #
    # 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.
    
    Tools:
    

    Note that the quantities are in half hearts.
    Commands/Permissions:
    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.
    Example:
    /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:
    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)
    1.1(CB:1060)
    1.0(CB:1000)
    0.4(CB:1000)
    0.3(CB:1000)
    0.2(CB:1000)
    0.1 (CB: 1000)
     
    JohnEBH likes this.
  2. Offline

    Numenorean95

    Try the /wh reload command. I would also like to see your conf if possible.
    Also, have you tried re-downloading wheatheal?
     
  3. Offline

    GothikaGeist310

    Just re-downloaded it yesterday. WheatHeal 1.1 right? And I'm guessing the Conf is the configuration file right? Oh and if I get one of my friends online I'll try it out right now. (I only run a tiny server with few people that I know)
     
  4. Offline

    Numenorean95

    Yes to all that. Sorry though, i goofed ;), i meant your console.
     
  5. Offline

    GothikaGeist310

    So wait... do you wanna see my console or my configuration file? ~brain fart~
    [Edit]: Console says WheatHeal rsion 1.1 Enabled. The config file is above. If you need a pic of though I'd be glad to post one.
     
  6. Odd..very odd. Nothing in the code suggests it should not work. what other plugins are you running?
     
  7. Offline

    Numenorean95

    Yes, could you?
     
  8. Offline

    GothikaGeist310

    Here is the log from when I start up the server. (Note: Fresh log)

    Code:
    2011-08-31 11:30:31 [INFO] This server is running Craftbukkit version git-Bukkit-0.0.0-980-g4ed23b1-b1060jnks (MC: 1.7.3)
    2011-08-31 11:30:32 [INFO] DungeonBuilder - Setting dungeon root folder to: plugins/dungeons
    2011-08-31 11:30:32 [SEVERE] ebean.properties not found
    2011-08-31 11:30:32 [INFO] DataSourcePool [Warpy] autoCommit[false] transIsolation[SERIALIZABLE] min[2] max[20]
    2011-08-31 11:30:32 [INFO] SubClassFactory parent ClassLoader [org.bukkit.plugin.java.PluginClassLoader]
    2011-08-31 11:30:33 [INFO] Entities enhanced[0] subclassed[1]
    2011-08-31 11:30:33 [INFO] Preparing level "world"
    2011-08-31 11:30:33 [INFO] Preparing start region for level 0 (Seed: 7027975855668474353)
    2011-08-31 11:30:34 [INFO] Preparing spawn area: 81%
    2011-08-31 11:30:34 [INFO] Preparing start region for level 1 (Seed: -6928051204276892233)
    2011-08-31 11:30:35 [INFO] Preparing spawn area: 97%
    2011-08-31 11:30:35 [INFO] [BedHeal]: starting...
    2011-08-31 11:30:37 [INFO] [Bedheal]: started!
    2011-08-31 11:30:37 [INFO] BleedingMobs v2.3 loaded. Have fun!
    2011-08-31 11:30:37 [INFO] BOSEconomy: Could not locate the Permissions plugin. Option 'use-permissions-plugin' will be ignored.
    2011-08-31 11:30:37 [INFO] BOSEconomy v0.7.2 enabled.
    2011-08-31 11:30:37 [INFO] CraftBukkitUpToDate version 2.6.3 is enabled!
    2011-08-31 11:30:37 [INFO] CButD: Permission system not detected, defaulting to OP
    2011-08-31 11:30:37 [INFO] DungeonBuilder (v.0.7.3) Enabled
    2011-08-31 11:30:37 [INFO] DungeonBuilder - Loading dungeon - Chino:omfgrun
    2011-08-31 11:30:38 [INFO] CButD: CraftBukkit is up to Date
    2011-08-31 11:30:47 [INFO] CButD: Plugin-Update-Check started
    2011-08-31 11:30:49 [INFO] DungeonBuilder - Permission plugin not found.  Disabling permissions.
    2011-08-31 11:30:49 [INFO] No source for Bedheal.jar ask the Author to give me one
    2011-08-31 11:30:49 [INFO] Fortification - Permission system not detected, defaulting to server-wide use.
    2011-08-31 11:30:49 [INFO] Fortification - Factions plugin not detected, faction filters will be disabled.
    2011-08-31 11:30:49 [INFO] Fortification - BOSEconomy detected: mechanism costs enabled
    2011-08-31 11:30:49 [INFO] fortification 0.7 initialized
    2011-08-31 11:30:49 [INFO] [HealthBar] Loading..
    2011-08-31 11:30:49 [INFO] [HealthBar] Loaded up plugin... Version 0.8.
    2011-08-31 11:30:49 [INFO] HookShot version 1.3.3 is enabled!
    2011-08-31 11:30:49 [INFO] [Moo][LivingForest] Permission system not detected, defaulting to OP
    2011-08-31 11:30:49 [INFO] [Moo][LivingForest] 12 Enabled
    2011-08-31 11:30:49 [INFO] MapClone version 0.4 is enabled!
    2011-08-31 11:30:49 [INFO] Version: 61
    2011-08-31 11:30:49 [INFO] [NarrowtuxLib] v0.6.1 by [narrowtux] enabled.
    2011-08-31 11:30:49 [INFO] [NarrowtuxLib] Payment method found (BOSEconomy version: 0.7.0)
    2011-08-31 11:30:49 [INFO] [pathogenPlayerLives] Loading Pathogen playerLives...
    2011-08-31 11:30:49 [INFO] [pathogenPlayerLives] Loading config...
    2011-08-31 11:30:49 [INFO] [pathogenPlayerLives] Saving config...
    2011-08-31 11:30:49 [INFO] [pathogenPlayerLives] Done loading Pathogen playerLives.
    2011-08-31 11:30:49 [INFO] [pathogenPlayerLives] Successfully linked with BOSEconomy
    2011-08-31 11:30:49 [INFO] Not able to update BleedingMobs.jar. It seems the plugin-Source is wrong ask the Author to give me the new one
    2011-08-31 11:30:49 [INFO] [Showcase] Registered type [basic] (0 items loaded)
    2011-08-31 11:30:49 [INFO] [Showcase] Registered type [finite] (0 items loaded)
    2011-08-31 11:30:49 [INFO] [Showcase] Registered type [infinite] (14 items loaded)
    2011-08-31 11:30:49 [INFO] [Showcase] Registered type [exchange] (0 items loaded)
    2011-08-31 11:30:49 [INFO] [Showcase] Registered type [tutorial] (0 items loaded)
    2011-08-31 11:30:49 [WARNING] Permissions not found! All Operations are allowed!
    2011-08-31 11:30:49 [INFO] [Showcase] version 0.7.4 has been enabled.
    2011-08-31 11:30:49 [INFO] Starting Spawny version 1.0.0.2
    2011-08-31 11:30:49 [WARNING] Permission system not detected, defaulting to OP
    2011-08-31 11:30:49 [INFO] [SPITEMS]1.1 enabled.
    2011-08-31 11:30:49 [INFO] No source for MapClone.jar ask the Author to give me one
    2011-08-31 11:30:50 [INFO] CraftBukkitUpToDate.jar changed, try to download the new
    2011-08-31 11:30:50 [INFO] No source for NarrowtuxLib.jar ask the Author to give me one
    2011-08-31 11:30:50 [INFO] CraftBukkitUpToDate.jar updated, copy C:\Users\GothikaGeist\AppData\Roaming\.craftbukkit\bukkit_update\plugins\CraftBukkitUpToDate.jar to your Plugin-Folder
    2011-08-31 11:30:50 [INFO] Spout 1.0.5.227 has been initialized
    2011-08-31 11:30:50 [INFO] [SpoutTrade] Version 1.3-BETA enabled
    2011-08-31 11:30:50 [INFO] [TeslaCoil] Permissions not found, not using
    2011-08-31 11:30:50 [INFO] [TeslaCoil] version 2.0 by [Darklust] Loaded
    2011-08-31 11:30:50 [INFO] Starting Warpy version 1.0.0.0
    2011-08-31 11:30:50 [INFO] Loaded 5 warps
    2011-08-31 11:30:50 [WARNING] Permission system not detected, defaulting to OP
    2011-08-31 11:30:50 [INFO] [WheatHeal] Version 1.1 enabled
    2011-08-31 11:30:50 [INFO] [WurkIt] Permission system not detected, defaulting to OP
    2011-08-31 11:30:50 [INFO] [WurkIt] hooked into BOSEconomy
    2011-08-31 11:30:50 [INFO] [WurkIt] v1.2.0 Enabled Successfully
    2011-08-31 11:30:50 [INFO] [mcMMO] Using Bukkit Permissions.
    2011-08-31 11:30:50 [INFO] No source for SPITEMS_v1.1.jar ask the Author to give me one
    2011-08-31 11:30:50 [INFO] Loading Config File...
    2011-08-31 11:30:50 [INFO] LivingForest.jar changed, try to download the new
    2011-08-31 11:30:51 [INFO] LivingForest.jar updated, copy C:\Users\GothikaGeist\AppData\Roaming\.craftbukkit\bukkit_update\plugins\LivingForest.jar to your Plugin-Folder
    2011-08-31 11:30:51 [INFO] Showcase.jar changed, try to download the new
    2011-08-31 11:30:51 [INFO] No source for teslacoil2.0.jar ask the Author to give me one
    2011-08-31 11:30:51 [INFO] Spawny.jar changed, try to download the new
    2011-08-31 11:30:51 [INFO] playerLives.jar changed, try to download the new
    2011-08-31 11:30:51 [INFO] No source for Warpy.jar ask the Author to give me one
    2011-08-31 11:30:51 [INFO] Spawny.jar updated, copy C:\Users\GothikaGeist\AppData\Roaming\.craftbukkit\bukkit_update\plugins\Spawny.jar to your Plugin-Folder
    2011-08-31 11:30:51 [INFO] Showcase.jar updated, copy C:\Users\GothikaGeist\AppData\Roaming\.craftbukkit\bukkit_update\plugins\Showcase.jar to your Plugin-Folder
    2011-08-31 11:30:51 [INFO] playerLives.jar updated, copy C:\Users\GothikaGeist\AppData\Roaming\.craftbukkit\bukkit_update\plugins\playerLives.jar to your Plugin-Folder
    2011-08-31 11:30:51 [INFO] No source for WurkItv1.2.0.jar ask the Author to give me one
    2011-08-31 11:30:52 [INFO] CButD: 5 plugins were updated, please copy them into your plugins folder.
    2011-08-31 11:30:52 [INFO] CButD: Plugin-Update-Check finished
    2011-08-31 11:30:52 [INFO] mcMMO version 1.1.13 is enabled!
    2011-08-31 11:30:52 [INFO] [MobArena] Payment method found (BOSEconomy version: 0.7.0)
    2011-08-31 11:30:52 [INFO] [MobArena] v0.94.1 enabled.
    2011-08-31 11:30:52 [INFO] Server permissions file permissions.yml is empty, ignoring it
    2011-08-31 11:30:52 [INFO] Done (1.924s)! For help, type "help" or "?"
    WheatHeal's folder only has the config.yml in it.

    [​IMG]
     
  9. Offline

    EdTheLoon

    Would you be able to make a 'test server' comprising of only one plugin - WheatHeal and see if it works then? There MAY be a possibility of conflicting plugins
     
  10. Offline

    GothikaGeist310

    You gotta remember that I said this was my very first plugin. I made a CraftBukkit server with only this plugin at first and it didn't work then. BUT, I guess there's no harm in trying again.
     
  11. Offline

    EdTheLoon

    Oh yes, sorry that's my mistake I completely forgot. If you could try again just to confirm it's not working at all that would be very helpful :)
     
  12. Offline

    GothikaGeist310

    I'm a bit confused as to how to set up a "test server" though... should I just move all my plugins to another location, move WheatHeal back and then create a new world? (With only WheatHeal, that is)
     
  13. Offline

    EdTheLoon

    Just copy and paste 'craftbukkit-0.0.1-SNAPSHOT.jar' and you're startup script if you have one, into a new folder on your desktop called 'test server' (or similar).
    Run your startup script in your test server folder (if you have one, if not start the server like you normally would).
    It will create a new world, folders etc. Stop the server once it's done everything.
    Add WheatHeal.jar to the plugins folder, run the server again.
    Make yourself OP.
    Edit the WheatHeal config if you want then reload server or wheatheal config.
    Punch someone with food :)
     
  14. Offline

    GothikaGeist310

    If I can get my friend on then I'll go ahead and try it now.
    [EDIT] I just tested it. It didn't work. My friend jumped off a high pile of blocks and I beat his lights out with raw Porkchop. The config file above applies here because the config file and .jar were copy and pasted.
     
  15. Offline

    EdTheLoon

    Okay, thank you. We're trying to figure this one out.
     
  16. Beta 2.0 with support for #1185 is out :)
     
  17. Offline

    Numenorean95

    Ok, im promoting it to release status.
     

Share This Page