I have a server and would like to now if it is possible to print the X,Y,Z coordinates of a player, and how to do this.
/execute as PLAYER/TARGET run execute at @s run tp @s ~ ~ ~
this teleports a target to its current location. I tested it on a bunch of chickens so I should work.
The server console should be able to see the feedback from this command, thus showing the coordinates of a player/mob.
Change PLAYER/TARGET to your desired target. @a will select all players
be careful tho because and error in this command could tp everyone to the world spawn