-
Notifications
You must be signed in to change notification settings - Fork 0
BooleanManager
Larrox edited this page Aug 29, 2025
·
5 revisions
The BooleanManager is a simple utility in LarroxUtilsAPI that allows you to check true/false states of the API.
It is mainly used to identify the current build type (e.g., Dev, Release, or LarroxDev).
Note
BooleanManager was added in DEV-BUILD-1.0.0
- Quickly check if you are running a Dev-Build 💻
- Verify if you are on a Release Build 🚀
- Detect if it’s the LarroxDev Build 🔧 (mainly for internal use)
Until an official release is available, please refer to your TabCompleter for the available boolean flags.
public static void printBuildInfo() {
// Checking if its the Dev-Build
if (isDevBuild) {
System.out.println("💻 Running LarroxUtilsAPI Dev!");
}
// Check if its the Release Build
if (isReleaseBuild) {
System.out.println("🚀 Running LarroxUtilsAPI Release!");
}
// You probably dont need it, except you are me (Larrox).
if (isLarroxBuild) {
System.out.println("🔧 Running LarroxUtilsAPI LarroxDev!");
}
}import dev.larrox.Logger;
public static void printBuildInfo() {
// Checking if its the Dev-Build
if (isDevBuild) {
Logger.info("💻 Running LarroxUtilsAPI Dev!");
}
// Check if its the Release Build
if (isReleaseBuild) {
Logger.info("🚀 Running LarroxUtilsAPI Release!");
}
// You probably dont need it, except you are me (Larrox).
if (isLarroxBuild) {
Logger.info("🔧 Running LarroxUtilsAPI LarroxDev!");
}
}- Use these booleans mainly for debugging and development checks.
- Avoid relying on
isLarroxBuildunless you are debugging Larrox’s internal builds. - Prefer using the
Loggerexample for cleaner output inside plugins.