Skip to content

API Installation

Add SmartSpawner API via JitPack

Latest Version: Latest Release

Maven:

<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
<dependency>
<groupId>com.github.NighterDevelopment</groupId>
<artifactId>SmartSpawner</artifactId>
<version>LATEST</version>
<scope>provided</scope>
</dependency>

Gradle:

repositories {
maven { url 'https://jitpack.io' }
}
dependencies {
compileOnly 'com.github.NighterDevelopment:SmartSpawner:LATEST'
}

Note: Replace LATEST with the specific version number for production builds.

Add SmartSpawner as dependency in plugin.yml:

name: YourPlugin
version: 1.0.0
main: com.yourpackage.YourPlugin
depend: [SmartSpawner]
# or
softdepend: [SmartSpawner] # Optional dependency
import github.nighter.smartspawner.api.SmartSpawnerAPI;
import github.nighter.smartspawner.api.SmartSpawnerProvider;
public class YourPlugin extends JavaPlugin {
private SmartSpawnerAPI api;
@Override
public void onEnable() {
// Initialize API
api = SmartSpawnerProvider.getAPI();
if (api == null) {
getLogger().warning("SmartSpawner not found!");
return;
}
getLogger().info("SmartSpawner API connected successfully!");
}
public SmartSpawnerAPI getAPI() {
return api;
}
}



Last update: November 17, 2025 11:38:36