MinecraftServerVersion

class MinecraftServerVersion(plugin: Plugin) : SemVersion

Represents the version of the Minecraft server.

Constructors

Link copied to clipboard
constructor(plugin: Plugin)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

The server branding.

Link copied to clipboard

Whether the server is running Folia.

Link copied to clipboard

Whether the server is running a legacy version (1.12.2 or older).

Link copied to clipboard

Whether the server is running a modern version (1.13 or newer).

Link copied to clipboard

Whether the server is running Paper.

Link copied to clipboard

Whether the server is running Spigot.

Link copied to clipboard

The server revision.

Functions

Link copied to clipboard
operator fun compareTo(other: String): Int
operator fun compareTo(other: SemVersion): Int

Compares this version to another version. If the number of components in the versions differ, the version with fewer components is considered less than the other.

Link copied to clipboard

Checks if the current version is compatible with the given class.

Link copied to clipboard
open override fun toString(): String

Returns the string representation of this version.