Players in-game can use the /near command to view who is nearby.
Action: Will show all player names, their ranks, and their distance in blocks (m) in your chat only.
Players nearby:(Buddy) JumboCookie(5m)
Note: this command will only show players within 200 blocks from you. If there are a lot of players nearby, you may need to scroll through chat to see the complete list.