-
Notifications
You must be signed in to change notification settings - Fork 3
Developer API
Moros edited this page Dec 4, 2025
·
4 revisions
The API artifact is published to the Sonatype snapshots maven repository:
<repositories>
<repository>
<id>sonatype-oss-snapshots</id>
<url>https://central.sonatype.com/repository/maven-snapshots/</url>
</repository>
</repositories>
<dependency>
<groupId>me.moros</groupId>
<artifactId>gaia-api</artifactId>
<version>2.0.0-SNAPSHOT</version>
<scope>provided</scope>
</dependency>repositories {
maven("https://central.sonatype.com/repository/maven-snapshots/")
}
dependencies {
compileOnly("me.moros:gaia-api:2.0.0-SNAPSHOT")
}The root API interface is Gaia.
You can obtain it using the Bukkit ServicesManager
RegisteredServiceProvider<Gaia> provider = Bukkit.getServicesManager().getRegistration(Gaia.class);
if (provider != null) {
Gaia gaiaApi = provider.getProvider();
// Do stuff with it
}