Here are the better solutions (note that these solutions can only teleport you to the safe area):
1. Quickly type "/tp 1000 ~ 1000" after respawn.
2. Delete you and your friend's playerdata (can be located in this link).
3. Use NBTExplorer to modify the world's spawnpoint. (Make sure to download your world and NBTExplorer before doing so).
My friend cant even click respawn before getting kicked