{
if (!(e.player instanceof EntityPlayerMP))
return;
EntityPlayerMP player = (EntityPlayerMP) e.player;
WarpPoint before = befores.get(player.getPersistentID());
WarpPoint current = new WarpPoint(player);
// obviously.. if there IS no before.. don't worry about it.
if (before == null)
{
befores.put(player.getPersistentID(), current);
return;
}
// no respawn stuff or respawn stuff
if (player.isDead || player.worldObj == null || before.getDimension() != current.getDimension())
{
befores.remove(player.getPersistentID());
return;
}