Class Server.ServerType

java.lang.Object
valorless.rarespawns.Server.ServerType
Enclosing class:
Server

public final class Server.ServerType extends Object
Utility class for detecting the server type (Paper or Spigot). Used to enable or disable features based on server capabilities.
  • Constructor Details

    • ServerType

      public ServerType()
  • Method Details

    • isPaper

      public static boolean isPaper()
      Returns true if the server is Paper or a fork of it (Purpur, Pufferfish, Folia, etc.).
      Returns:
      true if running on Paper, false if Spigot.