Inactive [MECH] Bandages v1.2.4 - Lets players heal themselves with bandages. [1185]

Discussion in 'Inactive/Unsupported Plugins' started by bekvon, Feb 28, 2011.

     
  1. Offline

    bekvon

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Bandages - Bandage based healing plugin.
    Current Version: v1.2.4

    Features:
    • Players must stand still to use bandages. (configurable)
    • Configurable amount of time it requires to apply bandages.
    • Configurable heal amount.
    • Configurable bandage item ID.
    • Players can heal each other by hitting them with the bandage.
    Usage:

    Equip bandage item (paper) in hand and right click while not facing another block. Wait for bandages to finish applying.

    Permissions Node:
    - 'bandages.use' - allows the player or group use bandages.

    ChangeLog:
    v1.2.4
    - Update for new bukkit permissions.


    v1.2.2
    - Update for CB612 / Minecraft 1.4

    v1.2.2
    - Fixed infinite bandage bug.

    v1.2.1
    - Fixed excessive message issue.

    v1.2
    - Updated to allow players to heal each other by hitting them with the bandage.
    - Rewrote much of the code

    v1.1.2
    - Fixed crashing bug.

    v1.1.1
    - Added a configuration option for the standing still requirement.
    - Fixed bandages not working properly after disableing and reneabling the plugin.
    - Rebuilt using the latest recommended CraftBukkit 493.

    v1.1 - 3/2/2011
    - Added support for permissions.

    v1.0 - 2/28/2011
    - Initial Relase

    Download:
    Bandages

    Source: GitHub

    This post has been edited 5 times. It was last edited by bekvon Aug 16, 2011.
  2.  
  3. Offline

    oOunrealOo

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    paper would make a good defult item
    ShootToMaim likes this.
  4. Offline

    bekvon

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Oh, your right, I didn't even think of that :) Especially since most people use wool for colorful things these days. I'll change it in the next version.
  5. Offline

    M1sT3rM4n

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Good idea :) Will be watching this thread :D
  6. Offline

    gazius

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Finally a good use for paper, it's a nice simple way to patch up when you accidentally fall from one block too high.
  7. Offline

    xCrap

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Something like L4D? Nice idea! :D
  8. Offline

    mudzereli

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    The plugin seems to break after a while of use. I *THINK* it's happening when two people try to bandage at the same time. Here's the error it spits before it stops working:

    Code:
    2011-03-08 07:46:31 [SEVERE] Exception in thread "Thread-6"
    2011-03-08 07:46:31 [SEVERE] java.util.ConcurrentModificationException
    2011-03-08 07:46:31 [SEVERE]     at java.util.HashMap$HashIterator.nextEntry(HashMap.java:810)
    2011-03-08 07:46:31 [SEVERE]     at java.util.HashMap$EntryIterator.next(HashMap.java:851)
    2011-03-08 07:46:31 [SEVERE]     at java.util.HashMap$EntryIterator.next(HashMap.java:849)
    2011-03-08 07:46:31 [SEVERE]     at com.bekvon.bukkit.bandages.BandagesListener.doBandage(BandagesListener.java:115)
    2011-03-08 07:46:31 [SEVERE]     at com.bekvon.bukkit.bandages.BandagesListener$1.run(BandagesListener.java:45)
    2011-03-08 07:46:31 [SEVERE]     at java.lang.Thread.run(Thread.java:636)
  9. Offline

    bekvon

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Yep, your right, its caused by two people using it at the same time. I just upload a new version which SHOULD fix it by making it thread safe. Try it to make sure its ok :)
  10. Offline

    Olat

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Love this idea. Is there a way to make it so it takes like 5 peices of paper per bandage? Since they stack, this would be a great way to configure how many per stack a player can use. An alternative to food, that stacks even with drawbacks is gunna be interesting!
  11. Offline

    bekvon

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Hmm, I hadn't thought of that, but it sounds good to me :) I'll see if I can make it so you can choose how much it takes.
  12. Offline

    Olat

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    @bekvon
    Also, what about the ability to bandage other players if you right click on them? I would LOVE for this part to have a permission like: bandage.healothers, so we can implement a Medic Class in our Rpg-Esque pvp server Im running.
    Both players would have to stand still or something to make it work. I dunno but I think it would be a HUGE upgrade. Please oh please?
  13. Offline

    bekvon

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Ah, great idea :D It shouldn't be too hard, I'll do it when I have time.
  14. Offline

    Olat

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    @bekvon
    Awesome! The sooner the better !!!! Im talking to mcMMO plugin Dev nossr50 and seeing if he can add in a skill with his other ones to incresse health healed by bandages or something. so we can have a skill up system for out Medic Class already. I think with your plugin and his working together we can really flesh out a cool new class / profession for RPG enthusiasts.
  15. Offline

    Grefuntor

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    S0unds excellent!
    Medics for the win!

    I like this mod giving paper a purpose though, its excellent!
  16. Offline

    bekvon

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Ok, v1.2 is out, supports players healing each other :D Just hit another player while holding the bandages.
  17. Offline

    Grefuntor

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    That is excellent! I thank you wholeheartedly!
  18. Offline

    Kainzo

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    We're interested in using your source in our Heroes plugin - please let me know if this would be an issue and if you would like to assist further.
  19. Offline

    xGhOsTkiLLeRx

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Hey,

    I found a bug :/

    If a make a rightclick with any item at full health, I get the message

    'You are already at full health!'

    Can you fix this? :D
    If you need more information, pls tell me!

    Craftbukkit #556
    Bandages v1.2
  20. Offline

    Blucid

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    We have the same problem, and people who do not have the permissions it states for them do not have permissions to bandage.

    Craftbukkit #556
    Bandages v1.2
  21. Offline

    bekvon

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    That's perfectly fine as long as I'm credited somewhere, go right ahead :)

    Oopsie, il fix it :)
  22. Offline

    bekvon

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Ok, I think i fixed it, try the new version.
  23. Offline

    Kainzo

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Thanks for the quick response
  24. Offline

    Olat

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Major issue.

    When i set # of items per bandage to 8. If the player has more then 8 it works fine. The moment he has ONLY 8 then the plugin will use the bandage but not remove the last 8 paper from him. so the last bandage is infinite.
  25. Offline

    xGhOsTkiLLeRx

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    It's fixed :D
    Thanks for your quick update!
  26. Offline

    oOunrealOo

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    well i havent looked at this for a while but could you make it so when you use this plugin you cant use food to heal or at least make it optional because this would go nicely with gastronomic because you could use bandages for healing and food for hunger this would be appreciated
  27. Offline

    xGhOsTkiLLeRx

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Just in cause you don't know, your plugin doesn't work with cb#560+
    Maybe you can make a fix, so if a new recommend build is released your is already working with the new version.
  28. Offline

    bekvon

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Hmm, this is quite possible if I can find the right event to catch food eating with. Il look into it :)

    Ok, thanks for testing it :) I believe theres a bunch of event changes coming up in bukkit, so I wouldn't be surprised if a lot of plugins are affected.
  29. Offline

    Olat

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    @bekvon
    Major issue.

    When i set # of items per bandage to 8. If the player has more then 8 it works fine. The moment he has ONLY 8 then the plugin will use the bandage but not remove the last 8 paper from him. so the last bandage is infinite.
  30. Offline

    bekvon

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    :eek: Ok, il see if I can fix that!
  31. Offline

    NickBrahz

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Wonderful Plugin mate, gives a more dominant use for paper!

Share This Page