int oldDim = player.dimension;
WorldServer worldserver = manager.getServerInstance().worldServerForDimension(player.dimension);
player.dimension = dimension;
WorldServer worldserver1 = manager.getServerInstance().worldServerForDimension(player.dimension);
player.playerNetServerHandler.sendPacket(new S07PacketRespawn(player.dimension, player.worldObj.difficultySetting, player.worldObj.getWorldInfo()
.getTerrainType(), player.theItemInWorldManager.getGameType()));
worldserver.removePlayerEntityDangerously(player);
player.isDead = false;
transferEntityToWorld(player, worldserver, worldserver1);
manager.func_72375_a(player, worldserver);