I am completely aware that I could use "tp @p 112 102 317" but as this is for a server I would like to ensure that the person that is getting teleported is the person that pressed the button.
Also I tried "/execute as @p at @s run tp @s 112 102 317" and it does not work. I have also tried "execute as @p at @s run tp @s 112 102 317"
I know they are both the same command but just for some stupid reason, I tried it anyway just so you knew.
[media]Now if you could explain why I got these errors when using it please do.