Package valorless.rarespawns
Class Server.ServerType
java.lang.Object
valorless.rarespawns.Server.ServerType
- Enclosing class:
Server
Utility class for detecting the server type (Paper or Spigot).
Used to enable or disable features based on server capabilities.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanisPaper()Returns true if the server is Paper or a fork of it (Purpur, Pufferfish, Folia, etc.).
-
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.
-