I was looking for a command and I found this:
/execute @a[x=a,y=b,z=c,r=d] ~ ~ ~ tp @p e f g
Where:
a
,b
, andc
are the XYZ coordinates that you want to teleport players from.d
is the radius in blocks around that point where players will be selected (min 1)e
,f
, andg
are the XYZ co-ordinates that you want to teleport players to (i.e. the destination)
My command turned out to be:
execute @a[-122,4,-74,999] ~ ~ ~ tp @-124 27 -74
It doesn't work and I don't know why.