It could be useful that the players spawn-points are saved in a specific file in the worlds folder. So modder could rely on that file to save a spawn-position (like in some bed-mods) or read that position (like my compass mod).
Of cause the format in the file should be determined, too.
In "default" should be a function to set the players position on respawn if defined.