Package me.croabeast.common.util
Class ServerInfoUtils
java.lang.Object
me.croabeast.common.util.ServerInfoUtils
The class that stores static keys for easy access and management.
- Since:
- 1.0
- Author:
- CroaBeast
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringRetrieves the version number of the Bukkit package that is currently running.final intReturns the Java major version of the server.final booleanReturns true if the server is Paper or a fork of it, otherwise false.final StringReturns the spigot-format server version and fork.final doubleReturns the major and minor version of the server in a double/decimal format. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
BUKKIT_API_VERSION
Retrieves the version number of the Bukkit package that is currently running. -
SERVER_VERSION
public final double SERVER_VERSIONReturns the major and minor version of the server in a double/decimal format.If version is
1.16.5, will return16.5. -
SERVER_FORK
Returns the spigot-format server version and fork. -
PAPER_ENABLED
public final boolean PAPER_ENABLEDReturns true if the server is Paper or a fork of it, otherwise false. -
JAVA_VERSION
public final int JAVA_VERSIONReturns the Java major version of the server.Example: if version is
1.8.0.302, will return8.
-
-
Constructor Details
-
ServerInfoUtils
public ServerInfoUtils()
-