Class RuntimeService
java.lang.Object
me.github.simonplays15.betterbansystem.api.runtimeservice.RuntimeService
The RuntimeService class provides utility methods for detecting the runtime
environment in which the application is running.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
Checks if the application is running in a BungeeCord environment.static boolean
isSpigot()
Checks if the application is running in a Spigot environment.
-
Constructor Details
-
RuntimeService
public RuntimeService()
-
-
Method Details
-
isSpigot
public static boolean isSpigot()Checks if the application is running in a Spigot environment.- Returns:
- true if running in a Spigot environment, false otherwise
-
isBungeeCord
public static boolean isBungeeCord()Checks if the application is running in a BungeeCord environment.- Returns:
- true if running in BungeeCord, false otherwise
-