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.
How am i supposed to change how much the bandage heals you?
@xXDan74Xx
Yes. I didn't understand you well. In the next version you can change the material for scissors and bandages if that's what you mean. If you want it so you only want it to work for paper and not for shears then you set scissors to paper and bandages to air.
@ThunderWaffeMC
Well not to be rude but maybe what i said didnt make sense like instead of right clicking the shears it would be configurable to just right click paper and i kinda of didnt understand waht you said so i'm just making mine sound more sense
@ThunderWaffeMC
sounds good :) good luck!
@MrMightyGnome
Well I wasn't going to start working on it until 1.4.8 or 1.5 but I could get started now. Give me tops of a week.
When can we expect the update? This plugin is an essential to my server, sadly.
@mindcat
Alright. I'll add that to the todo list.
@ThunderWaffeMC
"I hope all heal items have setting one by one, use them and heal items do not disappear or not." When used heal items, if that items was configured won't disappear, then that items still works but did not disappear.
"Also, Can you add a feature? Green dye can heal poisoned person." Paper + Green dye + Red dye or not, Shear apply somebody already poisoned one, this person is no longer posioned, if healer was apply red dye, then this person will be healed some hearts.
@xXDan74Xx
As you can see in the post below I already had that feature added. I'll be sure to add it into the next version.
Can you plz add config so you can swith which thing you can heal with because i run a server kinda of like DAYZ and i could really use the paper as the healer besides clicking shears.
TODO
@MrMightyGnome
Nope. I was just on a 2 week holiday.
@mindcat
When does this happen?
@mindcat
I'll give it a try. Sure. The cooldown sounds great.
Also, Can you add a feature? Green dye can heal poisoned person.
I hope all heal items have setting one by one, use them and heal items do not disappear or not.
And, can you add cool time for some reason?
12:54:01 [INFO] mindcat[/127.0.0.1:5523] logged in with entity id 10298 at ([wor
ld] 25.243847749754217, 73.5499999821186, 243.63090766649518)
12:55:17 [SEVERE] Could not pass event PlayerInteractEntityEvent to Healing Band
ages v1.0.0
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_4_6.PlayerConnection.a(PlayerConnection.java:
1107)
at net.minecraft.server.v1_4_6.Packet7UseEntity.handle(SourceFile:36)
at net.minecraft.server.v1_4_6.NetworkManager.b(NetworkManager.java:290)
at net.minecraft.server.v1_4_6.PlayerConnection.d(PlayerConnection.java:
112)
at net.minecraft.server.v1_4_6.ServerConnection.b(SourceFile:39)
at net.minecraft.server.v1_4_6.DedicatedServerConnection.b(SourceFile:30
)
at net.minecraft.server.v1_4_6.MinecraftServer.r(MinecraftServer.java:58
5)
at net.minecraft.server.v1_4_6.DedicatedServer.r(DedicatedServer.java:22
4)
at net.minecraft.server.v1_4_6.MinecraftServer.q(MinecraftServer.java:48
1)
at net.minecraft.server.v1_4_6.MinecraftServer.run(MinecraftServer.java:
416)
at net.minecraft.server.v1_4_6.ThreadServerApplication.run(SourceFile:84
9)
Caused by: java.lang.ClassCastException org.bukkit.craftbukkit.v1_4_6.entity.Cr
aftMinecart 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
12:55:25 [INFO] Connection reset
12:55:25 [INFO] mindcat lost connection: disconnect.quitting
thanks for replying back, i thought this plugin was a goner :(
@EpicPie011
The idea came from there, yes. I didn't know about it until later since it was a plugin request from a person.
@MrMightyGnome
It will be added in later versions!
@BukkitLover
Working on that feature! Great idea, too.
@MrMightyGnome
In the next version it will be fixed so you can't heal yourself with that amount of hearts.
i found a bug where if you/partner try to heal you when you have 7 or more hearts, it doesnt consume anything and there is no message but it heals me anyway
can you make a config to change waht the chat says? i really dont like how it says [HealingBandage] *msg*... there shouldnt be [HealingBandage] thing in front of chat at least.. also
01:20:00 [SEVERE] Could not pass event PlayerInteractEntityEvent to Healing Band
ages v1.0.0
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_4_6.PlayerConnection.a(PlayerConnection.java:
1096)
at net.minecraft.server.v1_4_6.Packet7UseEntity.handle(SourceFile:36)
at net.minecraft.server.v1_4_6.NetworkManager.b(NetworkManager.java:290)
at net.minecraft.server.v1_4_6.PlayerConnection.d(PlayerConnection.java:
112)
at net.minecraft.server.v1_4_6.ServerConnection.b(SourceFile:39)
at net.minecraft.server.v1_4_6.DedicatedServerConnection.b(SourceFile:30
)
at net.minecraft.server.v1_4_6.MinecraftServer.r(MinecraftServer.java:59
8)
at net.minecraft.server.v1_4_6.DedicatedServer.r(DedicatedServer.java:22
4)
at net.minecraft.server.v1_4_6.MinecraftServer.q(MinecraftServer.java:49
4)
at net.minecraft.server.v1_4_6.MinecraftServer.run(MinecraftServer.java:
427)
at net.minecraft.server.v1_4_6.ThreadServerApplication.run(SourceFile:84
9)
Caused by: java.lang.ClassCastException org.bukkit.craftbukkit.v1_4_6.entity.Cr
aftSheep cannot be cast to org.bukkit.entity.Player
at com.gmail.thunderwaffemc.HealingListener.onPlayerInteract(HealingList
ener.java:52
at sun.reflect.GeneratedMethodAccessor27.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
01:20:02 [SEVERE] Could not pass event PlayerInteractEntityEvent to Healing Band
ages v1.0.0
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_4_6.PlayerConnection.a(PlayerConnection.java:
1096)
at net.minecraft.server.v1_4_6.Packet7UseEntity.handle(SourceFile:36)
at net.minecraft.server.v1_4_6.NetworkManager.b(NetworkManager.java:290)
at net.minecraft.server.v1_4_6.PlayerConnection.d(PlayerConnection.java:
112)
at net.minecraft.server.v1_4_6.ServerConnection.b(SourceFile:39)
at net.minecraft.server.v1_4_6.DedicatedServerConnection.b(SourceFile:30
)
at net.minecraft.server.v1_4_6.MinecraftServer.r(MinecraftServer.java:59
8)
at net.minecraft.server.v1_4_6.DedicatedServer.r(DedicatedServer.java:22
4)
at net.minecraft.server.v1_4_6.MinecraftServer.q(MinecraftServer.java:49
4)
at net.minecraft.server.v1_4_6.MinecraftServer.run(MinecraftServer.java:
427)
at net.minecraft.server.v1_4_6.ThreadServerApplication.run(SourceFile:84
9)
Caused by: java.lang.ClassCastException org.bukkit.craftbukkit.v1_4_6.entity.Cr
aftSkeleton cannot be cast to org.bukkit.entity.Player
at com.gmail.thunderwaffemc.HealingListener.onPlayerInteract(HealingList
ener.java:52
at sun.reflect.GeneratedMethodAccessor27.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
01:20:05 [SEVERE] Could not pass event PlayerInteractEntityEvent to Healing Band
ages v1.0.0
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_4_6.PlayerConnection.a(PlayerConnection.java:
1096)
at net.minecraft.server.v1_4_6.Packet7UseEntity.handle(SourceFile:36)
at net.minecraft.server.v1_4_6.NetworkManager.b(NetworkManager.java:290)
at net.minecraft.server.v1_4_6.PlayerConnection.d(PlayerConnection.java:
112)
at net.minecraft.server.v1_4_6.ServerConnection.b(SourceFile:39)
at net.minecraft.server.v1_4_6.DedicatedServerConnection.b(SourceFile:30
)
at net.minecraft.server.v1_4_6.MinecraftServer.r(MinecraftServer.java:59
8)
at net.minecraft.server.v1_4_6.DedicatedServer.r(DedicatedServer.java:22
4)
at net.minecraft.server.v1_4_6.MinecraftServer.q(MinecraftServer.java:49
4)
at net.minecraft.server.v1_4_6.MinecraftServer.run(MinecraftServer.java:
427)
at net.minecraft.server.v1_4_6.ThreadServerApplication.run(SourceFile:84
9)
Caused by: java.lang.ClassCastException org.bukkit.craftbukkit.v1_4_6.entity.Cr
aftSheep cannot be cast to org.bukkit.entity.Player
at com.gmail.thunderwaffemc.HealingListener.onPlayerInteract(HealingList
ener.java:52
at sun.reflect.GeneratedMethodAccessor27.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
01:20:15 [INFO] LarryLikesGnomes was killed by a sheep
01:20:19 [INFO] <~Sangheili_Elite> yeah
01:20:22 [INFO] LarryLikesGnomes issued server command: /tp LarryLikesGnomes el
01:20:23 [SEVERE] Could not pass event PlayerInteractEntityEvent to Healing Band
ages v1.0.0
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_4_6.PlayerConnection.a(PlayerConnection.java:
1096)
at net.minecraft.server.v1_4_6.Packet7UseEntity.handle(SourceFile:36)
at net.minecraft.server.v1_4_6.NetworkManager.b(NetworkManager.java:290)
at net.minecraft.server.v1_4_6.PlayerConnection.d(PlayerConnection.java:
112)
at net.minecraft.server.v1_4_6.ServerConnection.b(SourceFile:39)
at net.minecraft.server.v1_4_6.DedicatedServerConnection.b(SourceFile:30
)
at net.minecraft.server.v1_4_6.MinecraftServer.r(MinecraftServer.java:59
8)
at net.minecraft.server.v1_4_6.DedicatedServer.r(DedicatedServer.java:22
4)
at net.minecraft.server.v1_4_6.MinecraftServer.q(MinecraftServer.java:49
4)
at net.minecraft.server.v1_4_6.MinecraftServer.run(MinecraftServer.java:
427)
at net.minecraft.server.v1_4_6.ThreadServerApplication.run(SourceFile:84
9)
Caused by: java.lang.ClassCastException org.bukkit.craftbukkit.v1_4_6.entity.Cr
aftSkeleton cannot be cast to org.bukkit.entity.Player
at com.gmail.thunderwaffemc.HealingListener.onPlayerInteract(HealingList
ener.java:52
at sun.reflect.GeneratedMethodAccessor27.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
Just the plugin i needed too! Thanks. It would be amazing if u could add another message "You need a bandage" "You need a blood bag" or something like that then trying to use sheers and u don't have those items. Another thing would be great,in config file ability to choose how many harts it will heal for you and other player. Less harts for yourself, so it will be more teamwork.
Just the plugin in needed! thanks :)