Skip to content

Getting started with the API

BeautyQuests’ API module is published in Maven Central. To use it, add this dependency in the dependencies section of your pom.xml file:

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

Most of the time, you’ll want to add BeautyQuests as a dependency of your plugin. To do so, edit your paper-plugin.yml file and add BeautyQuests in the dependencies section, like this:

dependencies:
server:
BeautyQuests:
required: false
load: BEFORE

For more information, see the official PaperMC documentation.

The main entrypoint is the QuestsAPI instance: you can get it using

QuestsAPI.getAPI()

From there, you can access most of the parts of BeautyQuests: register custom stages, rewards, holograms manager, NPCs…

To access inner parts of BeautyQuests (players manager, editors, GUIs…) you can use the QuestsPlugin instance that you can get using

QuestsPlugin.getPlugin()