There are many ways you could go about doing it but you could essentially save the location per player in a player map and when they spawn auto-teleport them there.
There are many ways you could go about doing it but you could essentially save the location per player in a player map and when they spawn auto-teleport them there.