Get online player's position with the command,And basic player can use this function too.And you can get player's spawnpoint with command "getspawnpoint".And I add a command for get player's ping,But its may has some problem,So it's a experimental function.Use with caution.
Please donate me at
https://afdian.net/@saltdirtland.
Thank for your read and use.Have a good day!