Package com.comphenix.protocol.utility
Class Util
java.lang.Object
com.comphenix.protocol.utility.Util
General utility class
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanclassExists(String className) static booleanChecks if the server is getting reloaded by walking down the current thread stack trace.static booleanstatic booleanWhether this server is running Spigot or a Spigot fork.
-
Constructor Details
-
Util
public Util()
-
-
Method Details
-
classExists
-
isUsingSpigot
public static boolean isUsingSpigot()Whether this server is running Spigot or a Spigot fork. This works by checking if the SpigotConfig exists, which should be true of all forks.- Returns:
- True if it is, false if not.
-
isUsingFolia
public static boolean isUsingFolia() -
isCurrentlyReloading
public static boolean isCurrentlyReloading()Checks if the server is getting reloaded by walking down the current thread stack trace.- Returns:
- true if the server is getting reloaded, false otherwise.
-