I want to have a command block with a button.
When clicking the button the command block should clear himself and spawn three new command blocks.
But here is the tricky part the new command blocks should have the name of the player who pressed the button.
Basically when the players name is Dinnerbone the new command blocks should have the command:
/tp @p[name=Dinnerbone] ~ ~1 ~-3
When the player who presses the button is named Notch the command of the new command blocks should be:
/tp @p[name=Notch] ~ ~1 ~-3
Is this even possible?