Gets the ping to the current server, or 5 if the player is in a single-player world.
The ping to the current server