public class LibUtils extends Object
| Constructor and Description |
|---|
LibUtils() |
| Modifier and Type | Method and Description |
|---|---|
String |
getBukkitVersion()
Retrieves the version number of the Bukkit package that is currently running.
|
double |
getMainVersion()
Returns the main version of the server in a double/decimal format.
|
boolean |
isPaper()
Checks if the server is Paper or a fork of it.
|
boolean |
isWindows()
Deprecated.
Use
SystemUtils.IS_OS_WINDOWS instead. |
int |
majorJavaVersion()
Returns the Java major version of the server.
|
int |
majorVersion()
Deprecated.
See
getMainVersion() to get the double value using the minor
and patch version of the active server. |
String |
serverFork()
Get the spigot-format server version and fork.
|
public String serverFork()
public String getBukkitVersion()
public double getMainVersion()
1.16.5, will return 16.5.0.0 if an error occurs.@ApiStatus.ScheduledForRemoval(inVersion="1.4") @Deprecated public int majorVersion()
getMainVersion() to get the double value using the minor
and patch version of the active server.1.16.5, will return 16.0 if an error occurs.public int majorJavaVersion()
Example: if version is 1.8.0.302, will return 8.
public boolean isPaper()
@ApiStatus.ScheduledForRemoval(inVersion="1.4") @Deprecated public boolean isWindows()
SystemUtils.IS_OS_WINDOWS instead.Copyright © 2023. All rights reserved.