# Initialisation

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.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://ordwenplugins.gitbook.io/odailyquests/api/initialisation.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
