Hello, this is just a /home system. I'd refer this used on parkour maps, maybe use a guy on adventure mode to come across a pickaxe that can break stone at the end, then go back and unlock the /home system. You do not actually do /home but it works a lot like that. So what it does is put a message in chat you click and then it sets a spawnpoint for you.
Since this was not made with this website, i coded it myself, please do let me know how it works for you down in the comments.
COMMAND:
/tellraw @p ["",{"text":"/HOME PERK <CLICK>","color":"dark_red","bold":true,"italic":true,"underlined":true,"clickEvent":{"action":"run_command","value":"/spawnpoint @p"}}]