[Request]GMPortal w/ wayback machine[Post contains pseudo code]

I suppose my last portals request was a bit crazy. I suppose this request could be better because I can actually come up with the proper logic for it.

Anyways, I’ve written some pseudo code for it, so if someone could turn it into real code or tell me I’m nuts?

if command == ‘gmportal’ then{
spawn portal to GM island
get name of current area?
insert current position of portal [and area name] to portalback table
}

if user clicks on wayback portal then{
for each row in portalback table{
create button using name(if saved) and/or coordinates
}
}

if user clicks on button then{
take user to associated coordinates
}

if command == ‘gmportal delete’ then{
get nearest GMPortal [within 10 yards]
get coordinates of said portal
delete portal
delete from portalback table where coordinates match
}

on server startup {
for each row in portalback table{
create GMPortal at coordinates
}
}

May need a better option for that last block, I don’t know if the portal would survive someone leaving and unloading an area?