getPing

fun getPing(): Long

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

Return

The ping to the current server

Sources

Link copied to clipboard