Skip to content

Installation ​

Group io.github.erano01; artifact ids are case sensitive. Replace VERSION with the latest release on Maven Central (currently 1.0.0-alpha.4).

Spigot / Paper plugin ​

kotlin
dependencies {
    compileOnly("io.github.erano01:EranoAPI-Spigot:VERSION")
}
xml
<dependency>
  <groupId>io.github.erano01</groupId>
  <artifactId>EranoAPI-Spigot</artifactId>
  <version>VERSION</version>
  <scope>provided</scope>
</dependency>
yaml
# plugin.yml
depend: [EranoAPI]

Server owners put EranoAPI.jar (SpigotMC or GitHub Releases) into plugins/; it provides the classes at runtime. Compile against the oldest API you support; EranoAPI takes care of the rest.

Fabric / Forge mod ​

The version is <EranoAPI version>+<Minecraft version>, for 1.21.11, 26.1.2 and 26.3.

kotlin
// Fabric
modImplementation("io.github.erano01:EranoAPI-Fabric:VERSION+26.3")
include("io.github.erano01:EranoAPI-Fabric:VERSION+26.3")      // jar-in-jar, optional

// Forge
implementation("io.github.erano01:EranoAPI-Forge:VERSION+26.3")

On Forge don't add EranoAPI-Common separately: EranoAPI-Forge already contains it, and the same package in two jars fails to load.

Plain Java (Cluster, Common) ​

kotlin
implementation("io.github.erano01:EranoAPI-Cluster:VERSION")   // shade and relocate it
implementation("io.github.erano01:EranoAPI-Common:VERSION")

SurvivalGames is a paid plugin. EranoAPI is open source under the MIT license.