Getting Started
Add the dependency and get hold of the API.
Integrate the BuildSystem Developer API (buildsystem-api version 4.0.0) to interface with world services, player configurations, and backup operations.
1. Adding BuildSystem to your Project
Maven
Add the dependency inside your pom.xml:
<dependency>
<groupId>de.eintosti</groupId>
<artifactId>buildsystem-api</artifactId>
<version>4.0.0</version>
<scope>provided</scope>
</dependency>Gradle (Kotlin DSL)
Add the dependency inside your build.gradle.kts:
repositories {
mavenCentral()
}
dependencies {
compileOnly("de.eintosti:buildsystem-api:4.0.0")
}2. Obtaining the API Instance
BuildSystem registers its API instance through Bukkit's standard ServicesManager during its onEnable phase.
Method A: Static Accessor Shorthand
Use the convenience provider class to fetch the active singleton:
Method B: Bukkit ServicesManager
Resolve the provider manually through Spigot's standard service framework:
3. Lifecycle & Timing Rules
Availability: The instance is registered during the BuildSystem plugin's
onEnableand unregistered during itsonDisable.Execution Constraint: Resolving the service before BuildSystem enables (e.g., inside your plugin's
onLoad()method) will throw anIllegalStateException. Always access the API inside or after your own plugin'sonEnable()method.Plugin Dependency: Ensure your
plugin.ymlorpaper-plugin.ymldeclares BuildSystem as a dependency to enforce correct loading orders:
Last updated