Initialisation
How to implements the API
The API is currently in development and not available from the latest version on Spigot. If you would like to try it before its official publication, please ask me on Discord.
Add ODailyQuests to your dependencies
To use the ODailyQuests API, you need to add the plugin into your dependencies, as a flat file: there is no Maven repository at the moment.
Gradle
First, you need to add the JitPack repository in your build.gradle
file:
Then, add the plugin to the dependencies:
Replace <Tag> with the latest version available here. For example, 2.3.0-SNAPSHOT.
Now, by reloading your Gradle configuration, you should have access to ODailyQuests classes.
Maven
First, you need to add the JitPack repository in your pom.xml
file:
Then, add the plugin to the dependencies:
Replace <Tag> with the latest version available here. For example, 2.3.0-SNAPSHOT.
Now, by reloading your Maven configuration, you should have access to ODailyQuests classes.
Get ODailyQuests & ODailyQuestsAPI instances
On your main class (or wherever you want), you can simply call the plugin instance like this:
Of course, ODailyQuests must be running on your server and added to your plugin dependencies. Now, you should be able to use all classes from ODailyQuests. For more information, please refer to the following pages.
Last updated