JavaPing

object JavaPing

Provides functionality to fetch and parse the status of a Java Minecraft server.

The object supports asynchronous and blocking methods to retrieve server details such as server description, version, players, and ping latency. It also includes support for SRV record resolution and Unicode domains.

Internal constants and helper methods handle Minecraft's communication protocol, including packet construction and parsing.

Functions

Link copied to clipboard
suspend fun getStatus(host: String, port: Int = 25565, timeout: Int = 2000, enableSrv: Boolean = true): JavaServerStatus

Fetch Java server status.

Link copied to clipboard
fun getStatusBlocking(host: String, port: Int = 25565, timeout: Int = 2000, enableSrv: Boolean = true): JavaServerStatus

Blocking method for getStatus.