API

This page is for developers who want to hook into EcoPets from their own plugin, e.g. to read or modify a player's pets and levels. EcoPets is open-source, so you can browse the full API in the repo.

Source code

The source code is on GitHub.

Adding the dependency

  1. Add the Auxilor repository to your build.gradle.kts.

  2. Add EcoPets as a compileOnly dependency.

repositories {
    maven("https://repo.auxilor.io/repository/maven-public/")
}

dependencies {
    compileOnly("com.willfp:EcoPets:<version>")
}

The latest version available on the repo can be found here.


Where to go next

  • Shared APIs: the eco framework, where the shared APIs live.

  • Config side: How to Make a Pet for building pets in config.