[ECON] iConomyHealth v0.3.2 - Heal/Hurt Players Using iConomy [740]

Discussion in 'Inactive/Unsupported Plugins' started by aPunch, Mar 30, 2011.

  1. Offline


    iConomyHealth - Healing and hurting players using the iConomy plugin
    Version: 0.3.2
    Download: iConomyHealth v0.3.2
    Source: iConomyHealth on GitHub

    Sick of players overusing the /heal command? Make them earn it, using iConomyHealth! You can heal and hurt players using simple iHeal/iHurt commands!

    • Configurable price for heal and hurt commands
    • Configure whether or not to charge per health point

    • /iHelp - the help menu for iConomyHealth
    • /iHeal [player] [healthpoints] - enter an amount between 1-20 to heal a player
    • /iHurt [player] [healthpoints] - enter an amount between 1-20 to hurt a player
    • /iList - lists the prices for healing/hurting

    iConomyHealth supports Permissions versions 2.5.4 - 2.7! If Permissions is not installed, commands default to Ops-only. Here is a list of Permissions nodes (case-sensitive):
    PermissionsNodes (open)

    • 'iConomyHealth.help'
    • 'iConomyHealth.heal'
    • 'iConomyHealth.hurt'
    • 'iConomyHealth.list'


    After installing and restarting your server, a folder called iConomyHealth will generate in your plugins folder. Inside of that folder is a config.yml file, where you will find these properties:
    • heal-price: set the price of each use of the /iHeal command. Default is 10 Coin.
    • hurt-price: set the price of each use of the /iHurt command. Default is 10 Coin.
    • pay-per-healthpoint: set whether or not to charge per healthpoint when using /iHeal and /iHurt

    • ability to configure prices in-game
    • Other?

    Changelog (open)

    0.3.2 - accessor methods are your friend
    - works with CB #716
    0.3.1 - fixed NPE
    - fixed bug where using /iHurt would actually heal the player
    0.3 - not specifying arguments will no longer return error messages
    - works with Permissions v2.6
    0.2.1 - fixed accounts going negative
    0.2 - added /iList command (and node 'iConomyHealth.list')
    - changed node 'iConomyHealth.damage' to 'iConomyHealth.hurt'
    - a bit of code cleanup
    0.1.1 - fixed ArrayIndexOutOfBoundsException errors
    - added configurable setting in config.yml that allows you to choose whether to pay per heart or per use of the command
    0.1 - Initial release

    Bug Reports/Suggestions:
    I am open to any criticism you have for my plugin! Please test this plugin out and report any bugs you find. Also, I will take into consideration any features you would like to have.

    I would like to give a special thanks to Nijikokun and Coelho for their wonderful iConomy plugin!
  2. Offline


    Is "10 coin" per heart or per use of the command itself?

    I'm hoping per heart, cause if it's per use, then its more effective to be almost dead so you get the most out of the 10 coins. If it's per heart and it's gunna cost someone 50 coins to heal up, they might learn a thing or two about NOT jumping into a glowing pool of lava :)
  3. Offline



    It currently is 10 coin per use of the command, but I will be changing that in the near future.
  4. Offline


    I'd make it a toggle cause while I'd prefer it the other way I'm betting there's someone who wants it per command use regardless :p
  5. Offline


    I will make it configurable in the config.yml. Thanks for your feedback!

    Version 0.1.1 Released!

    -fixed ArrayIndexOutOfBoundsException errors
    -added configurable setting in config.yml that allows you to choose whether to
    pay-per-heart or per use of the command

    This plugin does work with the latest CB build 612 (meaning it will work with MC Beta 1.4). It also still works with the last RB #602. More features are being worked on as of now, and should be released shortly.

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


    Version 0.2 Released!

    -added /iList command (and node 'iConomyHealth.list')
    -changed node 'iConomyHealth.damage' to 'iConomyHealth.hurt'
    -a bit of code cleanup

    ** It is important you change all 'iConomyHealth.damage' nodes in your Permissions config to 'iConomyHealth.hurt'. I don't know why I had it at damage, as the command itself is /iHurt.
  7. Offline


    Hi, nice Idea, is it possible to make a Doctor with NPC-Plugin?
    Greets! Flipp
  8. Offline


    That is not the intention of this plugin. If you want an NPC plugin, get Citizens. Bother fullwall to add doctors to it, I'm sure he will. :)
  9. Offline


    awesome plugin however it seems I might have done something wrong. As it stands anyone can spam heal and go minus coins. my friend healed himself and is now - 180. What did I do wrong, or is this working as intended? thanks :)
  10. Offline


    This must be either something with iConomy or something with my plugin. Is it possible to go negative without iConomyHealth? I'll make sure to add a check in my code to see if a player's balance > 0.
  11. Offline


    Right on aPunch, thanks. This plug in will help me immensely!
  12. Offline


    Version 0.2.1 Released!

    -fixed the accounts going negative (thanks to CADBANE's report!)
  13. Offline


    To clarify, iConomyHealth does work with the latest RB #617. Enjoy. :)
  14. Offline


    Can you please allow /iHeal to work without arguments?
    As I dont wana type /iheal zeepal 20 every time i wana heal
  15. Offline


    Yes I can! I was also getting tired of typing all of the arguments while I was testing it. I should have this released later today.
  16. Offline


    Sweet As my friend!
  17. Offline


    Version 0.3 Released!

    -not specifying arguments no longer returns error messages - you can now heal/hurt yourself without typing out 2 arguments
    -works with Permissions v2.6 (still works with previous versions, as well)
  18. Offline


    Its broke.

    Rofl! Here you go:
    Bukkit: 670
    Server: Ubuntu
    Minecraft Server: 1.4

    No config was generated for your plugin

    2011-04-12 12:53:28 [SEVERE] null loading iConomyHealth v0.3 (Is it up to date?)
    at mn.aPunch.iConomyHealth.iConomyHealthCommandExecutor.<init>(iConomyHealthCommandExecutor.java:16)
    at mn.aPunch.iConomyHealth.iConomyHealth.onEnable(iConomyHealth.java:59)
    at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:127)
    at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:578)
    at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:216)
    at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:115)
    at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:93)
    at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:215)
    at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:202)
    at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:142)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:257)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:375)

    Miss anything?

    oh yea I was excited! for the new release... that doesnt work :p
  19. Offline


    Version 0.3.1 Released!

    -fixed NPE (thanks to ZeePal for pointing it out)
    -fixed bug where using /iHurt would actually heal the player
  20. Offline

    Jonathan Bloom

    How do I disable hurting in the /ilist?
  21. Offline


    Do you mean how do you make it so the hurt price does not show up? Currently that is not possible, but I'll add that in a future update if you'd like.
  22. Offline


    Hey aPunch.. found a bug.. no mater how much you hurt or heal it's 10 coins, everytime. I'm running #[677]. And the
    feature for healing a heart at a time dosen't work either... but cool and usefull plugin.. keep up the good work. ;)
  23. Offline


    Have you set pay-per-healthpoint in the config file to true? If it is false, it only costs 10 coins (or whatever you set as the prices) per use of the command.
  24. Offline


    Awesome, another Reason to use iConomy!


    Keep work on it!
  25. Offline


    Can you make it so it will use as much money as you have to heal for broke people? (eg if its $5 per half heart and i have only half a heart left with $17 in the bank and i type /iheal i should loose $15 and gain 1.5 hearts (total of 2 hearts))
  26. Offline


    I had it set to true at first, but i could only heal 0.5 heart every time, so i changed it to false, and that didn''t help either. But yes, that was the issue for the amount of coins. But why is is only healing 0.5 heart at the time..? :D
  27. Offline


    .5 hearts is equal to 1 healthpoint. If you type /iHeal <player> 2, then you heal that player 1 heart, but 2 healthpoints.

    @ZeePal I'll see what I can do.
  28. Offline


    Ahh.. Just got a new idea.. In configuration it could be nice to set the healing to heal Hearts or HP
  29. Offline


    Version 0.3.2 Released!

    - accessor methods are your friend (internal changes for the benefit of me!)
    - works with CB #716
  30. Offline

    Der Bruder

    i found a bug to get free money:
    I have tested this plugin today and it works great but:
    when a player use the command /iHeal player -10
    (it works also if you only have the right for heal)
    Fix that!!!
    A player in my server have 100.000 coins before i have found the bug.
    Please fix

Share This Page