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

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

  1. Offline

    aPunch

    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!

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

    • /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
    Permissions:


    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'


    Configuration:

    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
    Future:

    • ability to configure prices in-game
    • Other?
    Changelog:


    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.

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

    Livewire

    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

    aPunch

    @Livewire

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

    Livewire

    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

    aPunch

    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

    aPunch

    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

    Flipp

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

    aPunch

    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

    CADBANE

    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

    aPunch

    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

    CADBANE

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

    aPunch

    Version 0.2.1 Released!

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

    aPunch

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

    ZeePal

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

    aPunch

    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

    ZeePal

    Sweet As my friend!
     
  17. Offline

    aPunch

    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

    ZeePal

    Its broke.



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

    No config was generated for your plugin

    Server.log:
    2011-04-12 12:53:28 [SEVERE] null loading iConomyHealth v0.3 (Is it up to date?)
    java.lang.NullPointerException
    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

    aPunch

    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

    aPunch

    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

    TheRealKANi

    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

    aPunch

    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

    ShockBuddy

    Awesome, another Reason to use iConomy!

    [diamond][diamond][diamond][diamond][gold]

    Keep work on it!
     
  25. Offline

    ZeePal

    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

    TheRealKANi

    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

    aPunch

    .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

    TheRealKANi

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

    aPunch

    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

    hi,
    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