JarType

enum JarType

Represents the type of JAR file the platform is running on. This enum helps identify the specific server implementation (e.g., Spigot, Paper, Fabric).

Since

2.0.0

Entries

Link copied to clipboard

Indicates a Spigot-based server.

Link copied to clipboard

Indicates a Paper-based server.

Link copied to clipboard

Indicates a Fabric-based server.

Functions

Link copied to clipboard
open fun raw(): String
Returns the raw string representation of the JAR type.
Link copied to clipboard

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants.