getName

fun getName(): String

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

Return

The name of the current server

Sources

Link copied to clipboard