Anti-Bed Trap

If you have ever been bed trapped on an anarchy server, with no way out of the trap, you know why this plugin exists on the server. The issue is you return to a server, log in and expect to wake up by your bed. Instead find yourself standing in lava burning to dead or standing in a wall suffocating to death. When you die you respawn by your bed and repeat the same death roll over and over. You can no longer play on the server unless you have a friend who can dig you out. If you playing solo on a server you are SOOL.

On the Enchanted Sword server there is an Anti-Bed Trap plugin. While it's not possible to stop a player from bed trapping you if/when your base is discovered, it is possible to stop the endless death roll.

This plugin performs the following actions:


 * 1) If you die from lava or suffocation the plugin routine starts.
 * 2) If you die again from lava or suffocation within 20 seconds the routine increments. The plugin notifies you it is active on 2 - 4 consecutive deaths.
 * 3) If you die a fifth time from lava or suffocation within 20 seconds the routine teleports you to a random location around spawn.
 * 4) You old coordinates are sent to you in chat.

The reasoning on this is:


 * Your base was discovered and a player maliciously wants you to die repeatedly, forever.
 * Your base is compromised, anything you have/had at that location is at risk or could be severy griefed by lava.
 * You will have lost items you were carrying on you.
 * There are a number of ender chests around spawn for community use. Hopefully you have some gear stashed you your echest to continue playing with.