getPing
Attempts to calculate the ping for this world. It will time how long it takes to connect a socket to the world's host address. The resulting ping is cached for up to 15 minutes to avoid repeated connections. This can take up to two seconds (it will time out and fail after two seconds). Note that this may not be the 'true' ping but is generally an accurate estimation in most cases.
Return
the ping to this world, or an empty optional if there was an issue getting the ping