Healing Bandages
Heal yourself and other players with bandages!
Tested against CraftBukkit 1.5.2 and works fine
Healing Bandages allows you to use bandages to heal yourself and other players. In this plugin, paper acts as a bandage and rose red (the red ink sac) acts as a blood bag. Shears are also your scissors for applying the ointment. When you are hurt, you can left click with shears and you will be healed. A bandage and a blood bag will be removed from your inventory for this action. If your friend is hurt, right click him while holding the scissors and you will heal him. Again, a bandage and a blood bag will be removed from your inventory for this action.
The plugin is extremely lightweight and easy to use. It is made so it's player friendly and anti-cheat-able. This plugin is perfect for survival servers, PVP servers, mini-game servers and lots more others!
Demonstration
Features
- Use a bandage (paper) and a blood bag (rose red) to heal yourself and other players
- Left click with your scissors (shears) to heal yourself
- Right click a player while holding your scissors (shears) to heal them
- Heals two and a half hearts every bandage used
- Displays a visual effect on heal
- When you heal yourself or another player, a bandage and blood bag is used up
- Two permission nodes for usage (one for healing yourself and one for healing other players)
- Lightweight and easy to install
- Perfect for PVP servers, survival servers, mini-game servers and much more
- A great perk for donators on servers
Installation instructions
- Drag the plugin .jar file into your plugins folder
- Reload/load your server
Usage instructions
Once you have Healing Bandages installed, follow these instructions:
- Make sure the player has the permission nodes supplied or has OP
- Have a bandage and a blood bag in your inventory
- You must be holding scissors
- Now left click yourself or right click another player to heal them
Permission nodes
The plugin currently has three simple permission nodes for usage:
- healingbandages.use.healme (allows you to use the bandage feature for yourself)
- healingbandages.use.healothers (allows you to use the bandage feature on other players)
- healingbandages.disable (allows you to disable the plugin with /healingbandagesdisable)
TODO
- (1.0.2) Make it configurable for the items used for healing
- (1.0.2) Configurable cooldowns or set to none
- (1.0.2) You cannot heal when you/they are below 2 hearts
- (1.0.3) "You need a _" messages
- (1.0.4) Green dye removes posion
- (1.1.0) Choose whether or not item 1, 2 or 3 is removed from your inventory on left/right click
- (1.1.0) Configure each message and what the message displays
- (1.1.0) Configure how many hearts the self-heal does
- (1.1.0) Configure how many hearts the team-heal does
Donate
Want to buy me a red bull? Do it here! (Donators of my than $4 may have their server or/and name advertised on a separate page)
Donate at the top right of the page.
Thanks very much for your contribution.
hey, awesome plugin, but something is missing i think.
it would be awesome if we could use an item to create blood by removing some of our health to create blood bags. would be more realistic ^^ just an idea like that.
@Hilliard20914
Yeah 1.6+ has a different way of getting health then 1.5 and below. I'll have to make an update sometime.
It still seems to work but it spamming my console. Any fix PM me.
23:30:45 [SEVERE] Could not pass event PlayerInteractEntityEvent to Healing Band
ages v1.0.1
org.bukkit.event.EventException
at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.ja
va:427)
at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.jav
a:62)
at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.j
ava:477)
at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.j
ava:462)
at net.minecraft.server.v1_6_R2.PlayerConnection.a(PlayerConnection.java
:1087)
at net.minecraft.server.v1_6_R2.Packet7UseEntity.handle(SourceFile:36)
at net.minecraft.server.v1_6_R2.NetworkManager.b(NetworkManager.java:296
)
at net.minecraft.server.v1_6_R2.PlayerConnection.e(PlayerConnection.java
:118)
at net.minecraft.server.v1_6_R2.ServerConnection.b(SourceFile:37)
at net.minecraft.server.v1_6_R2.DedicatedServerConnection.b(SourceFile:3
0)
at net.minecraft.server.v1_6_R2.MinecraftServer.t(MinecraftServer.java:5
90)
at net.minecraft.server.v1_6_R2.DedicatedServer.t(DedicatedServer.java:2
26)
at net.minecraft.server.v1_6_R2.MinecraftServer.s(MinecraftServer.java:4
86)
at net.minecraft.server.v1_6_R2.MinecraftServer.run(MinecraftServer.java
:419)
at net.minecraft.server.v1_6_R2.ThreadServerApplication.run(SourceFile:5
82)
Caused by: java.lang.ClassCastException org.bukkit.craftbukkit.v1_6_R2.entity.C
raftSheep cannot be cast to org.bukkit.entity.Player
at com.gmail.thunderwaffemc.HealingListener.onPlayerInteract(HealingList
ener.java:52
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.ja
va:425)
... 14 more
>
Seems strange. It works completely fine with me.
Line 52 from the error provided by semistro is just
Player t = (Player)entity;
which is to identify a player. Since it's a variable the plugin wouldn't have even used that code yet. Mustn't have been HealingBandages.
And as for WASasquatch it's the same line of code provided in the error. No idea but I will look into it. (I'll also try it with CraftZombie).
@semistro
Your errors seem to be from CraftZombie, not this plugin.
keep getting this error. http://pastebin.com/dzrNRMRf
@ThunderWaffeMC
This is repeated over and over on 1.5.2 R0.1 through 1.5.2 R1 (RB) builds on 1.0.1
19:06:31 [SEVERE] Could not pass event PlayerInteractEntityEvent to Healing Bandages v1.0.1 org.bukkit.event.EventException at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:427) at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:477) at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:462) at net.minecraft.server.v1_5_R3.PlayerConnection.a(PlayerConnection.java:1088) at net.minecraft.server.v1_5_R3.Packet7UseEntity.handle(SourceFile:36) at net.minecraft.server.v1_5_R3.NetworkManager.b(NetworkManager.java:292) at net.minecraft.server.v1_5_R3.PlayerConnection.d(PlayerConnection.java:115) at net.minecraft.server.v1_5_R3.ServerConnection.b(SourceFile:35) at net.minecraft.server.v1_5_R3.DedicatedServerConnection.b(SourceFile:30) at net.minecraft.server.v1_5_R3.MinecraftServer.r(MinecraftServer.java:581) at net.minecraft.server.v1_5_R3.DedicatedServer.r(DedicatedServer.java:226) at net.minecraft.server.v1_5_R3.MinecraftServer.q(MinecraftServer.java:477) at net.minecraft.server.v1_5_R3.MinecraftServer.run(MinecraftServer.java:410) at net.minecraft.server.v1_5_R3.ThreadServerApplication.run(SourceFile:573) Caused by: java.lang.ClassCastException: org.bukkit.craftbukkit.v1_5_R3.entity.CraftItemFrame cannot be cast to org.bukkit.entity.Player at com.gmail.thunderwaffemc.HealingListener.onPlayerInteract(HealingListener.java:52) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:425) ... 14 more 19:06:31 [SEVERE] Could not pass event PlayerInteractEntityEvent to Healing Bandages v1.0.1 org.bukkit.event.EventException at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:427) at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:477) at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:462) at net.minecraft.server.v1_5_R3.PlayerConnection.a(PlayerConnection.java:1088) at net.minecraft.server.v1_5_R3.Packet7UseEntity.handle(SourceFile:36) at net.minecraft.server.v1_5_R3.NetworkManager.b(NetworkManager.java:292) at net.minecraft.server.v1_5_R3.PlayerConnection.d(PlayerConnection.java:115) at net.minecraft.server.v1_5_R3.ServerConnection.b(SourceFile:35) at net.minecraft.server.v1_5_R3.DedicatedServerConnection.b(SourceFile:30) at net.minecraft.server.v1_5_R3.MinecraftServer.r(MinecraftServer.java:581) at net.minecraft.server.v1_5_R3.DedicatedServer.r(DedicatedServer.java:226) at net.minecraft.server.v1_5_R3.MinecraftServer.q(MinecraftServer.java:477) at net.minecraft.server.v1_5_R3.MinecraftServer.run(MinecraftServer.java:410) at net.minecraft.server.v1_5_R3.ThreadServerApplication.run(SourceFile:573) Caused by: java.lang.ClassCastException: org.bukkit.craftbukkit.v1_5_R3.entity.CraftItemFrame cannot be cast to org.bukkit.entity.Player at com.gmail.thunderwaffemc.HealingListener.onPlayerInteract(HealingListener.java:52) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:425) ... 14 more
Updated to 1.0.1
Details: Stable release file for 1.5.2-R0-1, 1.5.2, 1.5.1-R0.2, 1.5.1-R0.1, 1.5.1, 1.5.0, 1.4.7-R1.0, 1.4.7-R0.1, 1.4.7
Love it! Can't wait to see the item config ^_^
Ok, thank you
@Mr_Wired
I'll update it next week to 1.5.2
When I try to use this it gives me an error, could you please update to 1.5.2? Really need this for my server
pls update i need your plugin ;)
I may continue developing this plugin later (adding more features and a proper update for 1.5). But it should be fine for now.
@koopad
Doesn't need an update, works perfect on 1.4.7. Probably wont even need to be updated to 1.5.
When will the plugin be up-to-date?
Wasn't the update suppose to come out already? Just a teaser at least.. Sorry I'm asking for a lot probably but like I said, it's a great plugin so its a bit essential to my server :I
@Swagtastic2000
Hopefully in 1.4.8. Still have to get up 1.0.1, 1.0.2, 1.0.3 and then 1.1.0. I'm finished with 1.0.1 and in testing. And 1.0.2 and 1.0.3 have just one feature each that need completed so it should be easy.
@ThunderWaffeMC
ok thanks when do you believe it will be out?
NOTE: Version 1.0.1 has been coded and is in testing/editing mode. It should be out soon.
@Swagtastic2000
That feature will be added in version 1.1.0 as seen in the TODO.