Class Util

java.lang.Object
com.comphenix.protocol.utility.Util

public final class Util extends Object
General utility class
  • Constructor Details

    • Util

      public Util()
  • Method Details

    • classExists

      public static boolean classExists(String className)
    • 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.