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 version
    static int getVersionNumber()
    Gets the server version major release number
    static boolean isSpigot()  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • 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