LastStand
LastStand
Inspired by the last stand perk in CoD; revive your friends before they die!
When you long for those near-impossible mid-battle revivals of your fallen comrades; this plugin attempts to recreate those few moments between life and death wherein a brave friend might be able to save you...
As of 2.1.8, items used to revive someone will be consumed. This can be toggled off with the "items_used_up" config.
Source Code
At github: https://github.com/waffles87/laststand
Features
"Last Stand Mode" (a.k.a. "dying mode")
When your health reaches 0, you will enter "last stand mode", which is a state of "dying". The food bar will slowly run out, and you will die when it
expires unless you are revived by another player. Players can revive dying players by right-clicking them.
When you enter last stand mode you:
- Have your health set and stuck at 1/2 a heart.
- Drop whatever item is currently in-hand unless it's configured to be allowed (defaults to swords or bow).
- Do not drop any other items.
- Receive a message saying you are dying.
- Broadcast a server message to all players OR to all *nearby* players saying you are dying.
- Are un-targetted by nearby monsters.
In last stand mode you:
- Slowly lose your food bar; when it expires, you die and drop everything normally.
- Cannot take damage or be killed by mobs.
- Your foodbar can now 'take damage' from other players (PvP).
- Your foodbar can also 'take damage' from configurable damage types (e.g. falling).
- Can still attack and break blocks with configurable allowed items.
- Cannot be targeted by monsters.
- Move at a very slow speed.
- Give off smoke, ender pearl effects, and appear to be sneaking.
- Periodically broadcast a server message OR broadcast to nearby players saying you are dying.
- Are affected periodically by spots of blindness.
- Cannot pick up any items. EDIT: this was broken but is fixed as of v2.1.6
- Cannot change items except to configurable allowed items.
- Cannot eat food or consume potions.
- Can be revived by a player right-clicking you.
Upon revival you:
- Have health set to a configurable amount.
- Have your impairing effects restored; speed, vision, picking up/using items.
- Do not automatically recover the item you may have dropped.
- Do not automatically recover food points.
Disconnecting while dying:
- You immediately drop all of your items for anyone to take.
- A server message will be broadcast telling everyone that you dropped everything.
- Upon re-joining you will be dead and must respawn.
Installation
- Put LastStand.jar in your plugins folder and run your server; it will generate the default configs.
- When updating to a new version, delete the config file before running your server so that a new one will be generated.
Commands
laststand.revive <player> [quiet|silent]
ls.revive - convenience command
- This command will restore a player to normal if they are in LastStand mode (if they are "dying") with full HP and food.
- If you specify "quiet" then the sender will receive a success message but the player will not.
- If you specify "silent" then no success messages will be sent.
- If you specify neither silent nor quiet then the player and the sender will receive a success message.
- The permission for this command is laststand.revive_command and it defaults to op only. It is not included in laststand.*
(The idea behind this command was to give admins a last-ditch way to avoid players being stuck in LastStand mode because of some event incompatibility around the death or spawn events.)
laststand.reload
ls.reload - convenience command
- Reloads the LastStand configs.
Permissions
Permissions have been added as of 2.1.0.
- laststand.dying_mode allows a player to survive when they would have died so someone can revive them.
- laststand.revive_other allows a player to revive someone who is dying.
Both of the above default to true.
As of 2.1.4:
- laststand.revive_command allows for the use of the laststand.revive <player> command (see above). It defaults to op only.
As of 2.2.0:
- laststand.reload allows for the use of the laststand.reload. It defaults to op only.
Configs
Config file has been added as of 1.1.0; install the plugin in the plugins folder and run your server once, and the plugins/LastStand folder should be generated containing the config.yml. The config file itself includes many comments and is pretty self-explanatory.
The following features are configurable:
- Message text displayed to player and those broadcast to server/nearby players when someone begins dying, periodically while dying, or is revived.
- Above messages can be toggled on and off.
- Dropping of all items if a player disconnects while dying can be toggled off.
- Items you can use while dying (you will also not drop any of these when you first start dying).
- Items required to revive someone.
- new: toggle consumption of the item used to revive someone on and off
- Movement speed while dying.
- Timer length.
- Some acceptable damage types; whether they will allow you to be revivable AND whether they will hurt you when dying.
- Health restored on revival.
- Some options as to when a player will be automatically removed from dying mode; on teleport, on death, on respawn.
- Basic world support; which worlds will LastStand work on.
Targets for Future Release
Drawing Board
- Separating the timer from the food bar to decrease incompatibility with other plugins.
- Increasing the time it takes to revive someone (more than just one right-click).
Known Issues
- Certain minigame plugins that use team spawn points seem to be incompatible in that players will be stuck in last stand mode when they respawn.
- Players are able to pick up items while dying as of 2.0; this is fixed as of 2.1.6.
- See the ticket regarding compatibility with AntiCheat.
- Anything that replenishes your foodbar without eating (such as the "food" spell in MagicSpells) makes it possible to remain in "last stand mode" indefinitely.
- Anything that cancels damage (such as the "leap" spell in MagicSpells) may interfere with the damage-cancelling that occurs right before "last stand mode" is activated, resulting in death.
- Sometimes if death occurs for any reason other than the food bar expiring (or disconnecting) in "last stand mode", you will still be in "last stand mode" upon respawning. You should be revivable, but a disconnect should always reset you. Also see the laststand.revive <player> command.
- When the PvP option is turned on, arrows may rarely bounce off of a player when they enter LastStand mode and hit someone else.
- Very rarely, LastStand mode fails to activate when damage is taken from players or mobs and the player will simply die.
-
View User Profile
-
Send Message
Posted Oct 29, 2015@Waffles87
Nope, first time downloading it. I also had a plugin called Hungerplusplus that I removed just in case it was causing some conflicts, but still nothing. I don't have anything else that involves hunger, health or dying so I don't think anything else would cause a problem (but I could be wrong, programming eludes me) -I do however have "Minigames" but I was testing Last stand outside of the minigames, would it still cause conflicts?
Would you be willing to update the plugin? Take a look at the code and see if anything could be working better or something like that? -Either way, thanks for the response :)
-
View User Profile
-
Send Message
Posted Oct 22, 2015@Tainted_Chimera
Hey, I haven't looked at this for quite some time :/
Did you recently upgrade to 2.2.0? If so you may need to delete your config file so a new one is generated, but I can't remember how different the configs were between versions. Or maybe the permissions were modified from the defaults. Also you're right, the versions you're using don't quite line up with what's posted, I don't see why that would break it but it's possible.
Sorry these are textbook answers but there's not much more I can suggest atm.
-
View User Profile
-
Send Message
Posted Oct 22, 2015I can't seem to get into last stand mode, tested it several times :c We're on 1.7.10, and using Last stand 2.2.0, I suppose that could be the problem, but we have plugins from MC version 5 that are still working.
-
View User Profile
-
Send Message
Posted Dec 30, 2014are you sure that - laststand.dying_mode - laststand.revive_other are the permissions? I cant seem to enter last stand mode regardless of how i die...
-
View User Profile
-
Send Message
Posted Nov 12, 2014much hated in cod but bro great idea for mc :D ahh the old cod4 last stand perk 3 noobs who couldnt work out to use DEAD SILENCE!
-
View User Profile
-
Send Message
Posted Nov 6, 2014@Dillzzzzz
This is beyond my power :/
-
View User Profile
-
Send Message
Posted Nov 2, 2014Would it be possible to make them go one block deep into the ground so it looks as if they're down?
-
View User Profile
-
Send Message
Posted Jul 9, 2014OMG, THIS MOD IS GREAT!
I'm waiting you to update it to 1.7.2 XDDD
Would you collaborate with mod "animation player" to make a real land animation?
It's would be fun! Is this possible? :P
-
View User Profile
-
Send Message
Posted Jul 7, 2014@Clawshot
Thanks, I'll look into it. And thanks for the pic :)
-
View User Profile
-
Send Message
Posted Jul 7, 2014I found a Bug if you are in Creative Mode you can still get in Laststand Mode if you get hit by an Explosion / Projectile which Deals 10 Hearts of Damage.

And btw here is my Improved Improved Icon for you :D
-
View User Profile
-
Send Message
Posted Jul 6, 2014@BrennoBot
Awesome, thanks!
-
View User Profile
-
Send Message
Posted Jul 3, 2014Hey Waffles87, remember me? Well I got a new and improved icon for you bud! Keep up the good work!
Link to image: http://goo.gl/2Dqw12
Thanks!
-
View User Profile
-
Send Message
Posted Jul 1, 2014@Epicdestructin
Sorry that took so long, but I just posted an update with this functionality and to make sure that this thing still works with the latest CB 1.6.4.
@Clawshot
I assume you mean update to 1.7... using a CB Beta Build is scary to me, but this is next on my to-do list for this plugin.
-
View User Profile
-
Send Message
Posted Jun 28, 2014Update please? D:
-
View User Profile
-
Send Message
Posted Nov 15, 2013@Epicdestructin
Not at the moment, no. But I should be able to get that in; I likely won't be able to work on it for a few weeks though.
-
View User Profile
-
Send Message
Posted Nov 15, 2013When reviving players with a configured item, does it or can it take the item from the reviver?
-
View User Profile
-
Send Message
Posted Sep 30, 2013Ok thanks. I will try that, and they are Essentials commands for tping
-
View User Profile
-
Send Message
Posted Sep 30, 2013@scott19062
Make sure you have the newest config file; you should delete the old one before running a new version. Near the bottom of the new config is "teleport_restore" which you can set to false and it should fix this. I think the commands you mentioned are Essentials commands, and I think they are all just teleports. The reason teleporting resets a player by default is because I think that some plugins use teleporting to simulate spawn points; they teleport players without actually letting them die so they get stuck in LastStand mode. You may have to watch out for this if you turn off teleport_restore.
-
View User Profile
-
Send Message
Posted Sep 30, 2013could you fix it so if people tp to a /warp (name) or /spawn ext.. they don't leave the last stand mode I noticed this on my server and people can just /spawn or /home and it stops sure they still have 1/2 heart but it just stops. any way to fix?
-
View User Profile
-
Send Message
Posted Sep 29, 2013@twisted420mc
I fixed this as of 2.1.6 when more damage types became configurable; looks like I forgot to put it in the change log. I just double-checked and it's letting me starve normally. Please let me know if you are still able to reproduce it in the new release.