Skip to content

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


🚀 Features

  • 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)

📂 Booleans in BooleanManager

Until an official release is available, please refer to your TabCompleter for the available boolean flags.


🛠️ Examples

EXAMPLE 1 (with System.out.println)

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!");
    }
}

EXAMPLE 2 (with LarroxUtilsAPI’s Logger)

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!");
    }
}

✅ Best Practices

  • Use these booleans mainly for debugging and development checks.
  • Avoid relying on isLarroxBuild unless you are debugging Larrox’s internal builds.
  • Prefer using the Logger example for cleaner output inside plugins.

Clone this wiki locally