Skip to content
SkytAsul edited this page Sep 29, 2023 · 1 revision

The plugin has a separated API module which does not contain real logic but is usable by external developers to add extensions or get data.

Maven

In pom.xml, add this to the repositories section:

<repository>
  <id>codemc</id>
  <url>https://repo.codemc.org/repository/maven-public</url>
</repository>

And add this to the dependencies section: (replace VERSION by whatever version you want, i.e. 1.0-SNAPSHOT)

<dependency>
  <groupId>fr.skytasul</groupId>
  <artifactId>beautyquests-api</artifactId>
  <version>VERSION</version>
  <scope>provided</scope>
</dependency>

Java code

API is accessible through QuestsAPI.getAPI(). Use autocompletion and javadoc to discover what can be done using it!