You can not use targets with player names e.g: /tp <playername>[r=6] X Y Z this means you can't have it so you only teleport if you push it and not another player
What I expected to happen was...:
i thought it would only teleport me if i was the one who pushed it
What actually happened was...:
It would not teleport me only when i removed the [r=6] it worked, but then i teleported when anyone pushed it
Steps to Reproduce:
1. Place a command block
2. put this text into it: /tp <playername>[r=<range>] <X> <Y> <Z>
3. push the button, nothing will happen (unless you remove the [r=<range>] but then anyone can push it to tp you)
This is not a bug, but a feature request, and should be posted on the MC forums here. At present ranges are supported only with variable targets (ex @a)