> For the complete documentation index, see [llms.txt](https://ordwenplugins.gitbook.io/odailyquests/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ordwenplugins.gitbook.io/odailyquests/api/initialisation.md).

# Initialisation

How to implements the API

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:

```gradle
repositories {
    mavenCentral()
    maven { url 'https://www.jitpack.io' }
}
```

Then, add the plugin to the dependencies:

```gradle
dependencies {
    implementation 'com.github.Ordwen:ODailyQuests:<Tag>'
}
```

Replace \<Tag> with the latest version available [here](https://github.com/Ordwen/ODailyQuests/tags). 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:

```xml
<repositories>
	<repository>
	    <id>jitpack.io</id>
	    <url>https://www.jitpack.io</url>
	</repository>
</repositories>
```

Then, add the plugin to the dependencies:

```xml
<dependency>
    <groupId>com.github.Ordwen</groupId>
    <artifactId>ODailyQuests</artifactId>
    <version><Tag></version>
</dependency>
```

Replace \<Tag> with the latest version available [here](https://github.com/Ordwen/ODailyQuests/tags). For example, 3.0.

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:

```java
ODailyQuests odq = ODailyQuests.INSTANCE;
ODailyQuestsAPI odqApi = odq.getApi();
```

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.
