Class VersionUtils

java.lang.Object
me.remigio07.chatplugin.api.common.util.VersionUtils

public class VersionUtils extends Object
Util class used to grab information about the current environment's version.
  • Constructor Details

    • VersionUtils

      public VersionUtils()
  • Method Details

    • initVersionUtils

      @Deprecated public static void initVersionUtils() throws ChatPluginManagerException
      Deprecated.
      Internal use only.
      Initializes this class.
      Throws:
      ChatPluginManagerException - If something goes wrong.
    • getVersion

      public static VersionUtils.Version getVersion()
      Gets the current environment's version.
      Returns:
      Environment's version
    • getNMSVersion

      public static String getNMSVersion()
      Gets the current environment's NMS version.

      Will return "N/A" on non-Bukkit environments and on Paper starting from 1.20.5.

      Returns:
      Environment's NMS version
    • getImplementationVersion

      public static String getImplementationVersion()
      Gets the current environment's implementation's version.
      Returns:
      Environment's implementation's version
    • getImplementationName

      public static String getImplementationName()
      Gets the current environment's implementation's name.
      Returns:
      Environment's implementation's name
    • isSpigot

      public static boolean isSpigot()
      Checks if this is a Spigot environment.
      Returns:
      Whether Spigot is running
    • isPaper

      public static boolean isPaper()
      Checks if this is a Paper environment.
      Returns:
      Whether Paper is running
    • isPurpur

      public static boolean isPurpur()
      Checks if this is a Purpur environment.
      Returns:
      Whether Purpur is running
    • isArclight

      public static boolean isArclight()
      Checks if this is an Arclight environment.
      Returns:
      Whether Arclight is running
    • isWaterfall

      public static boolean isWaterfall()
      Checks if this is a Waterfall environment.
      Returns:
      Whether Waterfall is running
    • isFlameCord

      public static boolean isFlameCord()
      Checks if this is a FlameCord environment.
      Returns:
      Whether FlameCord is running