getIP

fun getIP(): String

Gets the current server's IP, or "localhost" if the player is in a single-player world.

Return

The IP of the current server

Sources

Link copied to clipboard