Class ServerInfoUtils

java.lang.Object
me.croabeast.common.util.ServerInfoUtils

public class ServerInfoUtils extends Object
The class that stores static keys for easy access and management.
Since:
1.0
Author:
CroaBeast
  • Field Details

    • BUKKIT_API_VERSION

      public static final String BUKKIT_API_VERSION
      Retrieves the version number of the Bukkit package that is currently running.
    • SERVER_VERSION

      public final double SERVER_VERSION
      Returns the major and minor version of the server in a double/decimal format.

      If version is 1.16.5, will return 16.5.

    • SERVER_FORK

      public final String SERVER_FORK
      Returns the spigot-format server version and fork.
    • PAPER_ENABLED

      public final boolean PAPER_ENABLED
      Returns true if the server is Paper or a fork of it, otherwise false.
    • JAVA_VERSION

      public final int JAVA_VERSION
      Returns the Java major version of the server.

      Example: if version is 1.8.0.302, will return 8.

  • Constructor Details

    • ServerInfoUtils

      public ServerInfoUtils()