Package com.enhancedechest
Class BuildInfo
java.lang.Object
com.enhancedechest.BuildInfo
Read-only access to build metadata baked into
build-info.properties at build time by
Gradle's processResources (see build.gradle.kts).
isDevBuild(JavaPlugin) is true only for local developer runs
(./gradlew runServer or runDev) and false in the jar shipped to users, so developer-only
logging can be gated out of release builds.
-
Method Summary
Modifier and TypeMethodDescriptionstatic booleanisDevBuild(org.bukkit.plugin.java.JavaPlugin plugin) Whether this jar came from a local dev run rather than a release build.
-
Method Details
-
isDevBuild
public static boolean isDevBuild(org.bukkit.plugin.java.JavaPlugin plugin) Whether this jar came from a local dev run rather than a release build. Any failure to read the resource is treated as a release build (the safe, quiet default).
-