Class NMSUtil
java.lang.Object
dev.esophose.playerparticles.util.NMSUtil
public final class NMSUtil
extends java.lang.Object
-
Constructor Summary
Constructors Constructor Description NMSUtil()
-
Method Summary
Modifier and Type Method Description static java.lang.String
getVersion()
Gets the server versionstatic int
getVersionNumber()
Gets the server version major release numberstatic boolean
isSpigot()
-
Constructor Details
-
NMSUtil
public NMSUtil()
-
-
Method Details
-
getVersion
public static java.lang.String getVersion()Gets the server version- Returns:
- The server version
-
getVersionNumber
public static int getVersionNumber()Gets the server version major release number- Returns:
- The server version major release number
-
isSpigot
public static boolean isSpigot()- Returns:
- true if the server is running Spigot or a fork, false otherwise
-