API Installation
Getting Started
Section titled “Getting Started”Installation
Section titled “Installation”Add SmartSpawner API via JitPack
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
LATESTwith the specific version number for production builds.
Plugin Configuration
Section titled “Plugin Configuration”Add SmartSpawner as dependency in plugin.yml:
name: YourPluginversion: 1.0.0main: com.yourpackage.YourPlugindepend: [SmartSpawner]# orsoftdepend: [SmartSpawner] # Optional dependencyAPI Usage
Section titled “API Usage”Basic Setup
Section titled “Basic Setup”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