JavaServerStatus

data class JavaServerStatus(val description: Description, val players: Players, val version: Version, val ping: Long, val enforcesSecureChat: Boolean = false, val favicon: String?) : ServerStatus

Represents the status of a Java Edition Minecraft server.

This data class extends from the sealed class ServerStatus and provides additional information specific to Java servers, including whether the server enforces secure chat and an optional favicon for the server.

Constructors

Link copied to clipboard
constructor(description: Description, players: Players, version: Version, ping: Long, enforcesSecureChat: Boolean = false, favicon: String?)

Properties

Link copied to clipboard
open override val description: Description

Description of the server, often referred to as the MOTD text.

Link copied to clipboard

Indicates whether the server enforces secure chat.

Link copied to clipboard

An optional base64-encoded string representing the server's favicon.

Link copied to clipboard
open override val ping: Long

The time taken to ping the server, measured in milliseconds.

Link copied to clipboard
open override val players: Players

Information about the players currently online and the maximum capacity.

Link copied to clipboard
open override val version: Version

Information about the server's version, including name and protocol.