Revive
Revive is a simple plugin that allows players to revive others when they die. When someone dies they have 1 hunger, and they cannot move, cannot eat and cannot interact with their environment (they can talk though.) And they will slowly die due to wither. If someone spams or holds right click without a sword on their hand on the injured they will slowly fill the injured's hunger bar, and when its full the person is revived (the reviver can move and it wont cancel it). Particles will show who is injured.
The injured player cannot teleport or use commands.
There are no permissions.
PasteBin: My Stuff: Revive: http://pastebin.com/XzVNBrhK
Main: http://pastebin.com/V57SsdUw
Other Stuff : ParticleEffect: http://pastebin.com/YjT8w9c6
ReflectionUtils: http://pastebin.com/VgFM2k5x
The Other Stuff is not made by me and is made by @DarkBlade12
Y si no hay nadie en el server, y no quiero ser salvado,¿¿ cómo me rindo???
@0ct0ber
nah.
@jackypacky
Do you need any pointers for how to do the second suggestion?
What about Multiworld Support? try to do the option to enable/disable the plugin in each world
@The_PC_Tech_Guy
did it.
I meant uploading the code on github or similar so I could add changes
@0ct0ber
Ima put it in. Both of your suggestions
Permissions would be great.
@jackypacky
I wrote some lines for this, as I think this is an exploit, and like all exploits, should be fixed as soon as possible. If you wish to do it yourself without help, don't click the link. This gets the job done in about six lines of extra code. http://pastebin.com/Lkhy4uWq
Another thing I think would be cool is if you rendered nearly dead players as lying on the ground horizontally. I'll let you add it yourself if you want to add it for now, but if you are unsure about how to do this or can't find how, feel free to PM me and I'll help :)
Also, "Open Source" means you give permission to people to look at the code in your license. However, you've already set this as public domain, so technically it is open source, although most developers only consider it that if the source code is openly displayed and easy to access.
@0ct0ber
Well people already kill themselves to gain food lol...... when I stop being lazy mabye ill to it
@The_PC_Tech_Guy Im new to making plugins... whats open source?
It would be a good idea if revived players only have one heart health, and get the food level they previously had. This way, a team of two can't just fully heal each other.
@jackypacky
Yea, that'd be the way to do it, or a cooldown on reviving - though I've heard this event isn't always reliable because it doesn't take into account armor? Anyways might be something you want to take a look at as I've only read about it in passing but haven't investigated it.
Also, any plans to make this open source? Otherwise I'll probably work on my own that functions similarly to Borderlands 2 "second wind" mode.
@jackypacky
:) learned through experience XD if you want to find bugs just release to a load of players ha ha
thanks for super quick fix
@The_PC_Tech_Guy
I GOT THE BEST IDEA TO STOP SOMEONE FROM GETTING INFINATE MONEY FROM KILLING AND REVIVING!!!! CHECK FOR DAMAGE EVENT AND SEE IF ITS FATAL!! ima update my plugin right now
@Ignisflame
Ill figure out whats up.
@jackypacky No I tried using it on my server and it wouldn't load at all
@The_PC_Tech_Guy
Well sucks for them. Its just like spawn camping. If you want you could download a plugin that tps players to spawn when they die. they could also disconnect.
@jackypacky
What about if they constantly revive and injure?
@The_PC_Tech_Guy
Then they get it twice i guess : once for injuring and once for killing