Steps to Reproduce:
1. start BDS server
2. join the server
3. in BDS console :/tp <PlayerName> ~ ~ ~
Observed Results:
The player teleport to 0 0 0
Expected Results:
The player should teleport to his own location.
Attachments
Comments 6
@DAMcraft I know, but in Bedrock Edition, players use /tp @s to know their location.
So typing that in the console must return the player's location to me (server owner).
Hi
Does this issue occur only on bedrock dedicated server or it can be reproduced on local worlds/Realms?
This ticket will automatically reopen when you reply.
@Maciej Piornik
This bug only occurs on Bedrock dedicated servers
Because you need to put the command on the BDS console, and local worlds/Realms do not have a console.
DAMcraft was correct and this works as expected. ~ ~ ~ doesn't return the coordinates of whatever player you name, it returns the coordinates of the actor executing the command. The /tp @s ~ ~ ~ only works because the actor is the same person as the <victim> @s, and the command output in chat shows the destination they were teleported to, which is the same position they're at. It's just a tricky way to find out where you are.
The /execute command lets you specify the actor for the command that follows it. That's what it's for, in fact. So you can use /execute <PlayerName> ~ ~ ~ tp ~ ~ ~ to find out where the player is, if that's what you wanted to do.
Looks like you are in the console. ~ is always relative to the player executing the command, in this case the console, which apparently is 0|0|0. Try /execute Bsayss ~~~ (your command)
example:
/execute Bsayss ~~~ tp @s ~ ~10 ~
will teleport the player 10 blocks up
hope this helps