# setup and dependency

PracticeBot provides a dedicated public API artifact for addon development. Do not compile against the full plugin internals.

## Maven dependency: classifier API jar

If your distribution provides `practicebot-1.6.0-api.jar` as a classifier artifact:

```xml
<dependency>
    <groupId>com.sheldera</groupId>
    <artifactId>practicebot</artifactId>
    <version>1.6.0</version>
    <classifier>api</classifier>
    <scope>provided</scope>
</dependency>
```

## Maven dependency: standalone API artifact

If your distribution provides a standalone API artifact:

```xml
<dependency>
    <groupId>com.sheldera.practicebot</groupId>
    <artifactId>practicebot-api</artifactId>
    <version>1.6.0</version>
    <scope>provided</scope>
</dependency>
```

Use the artifact style provided by your seller/support package.

## Local install example

Windows CMD:

```bat
mvn install:install-file ^
  -Dfile=C:\path\to\practicebot-1.6.0-api.jar ^
  -DgroupId=com.sheldera ^
  -DartifactId=practicebot ^
  -Dversion=1.6.0 ^
  -Dclassifier=api ^
  -Dpackaging=jar
```

Linux/macOS shell:

```bash
mvn install:install-file \
  -Dfile=/path/to/practicebot-1.6.0-api.jar \
  -DgroupId=com.sheldera \
  -DartifactId=practicebot \
  -Dversion=1.6.0 \
  -Dclassifier=api \
  -Dpackaging=jar
```

## Addon `plugin.yml`

If your addon requires PracticeBot:

```yaml
name: MyPracticeBotAddon
main: com.example.myaddon.MyPracticeBotAddon
version: 1.0.0
api-version: '1.21'
depend: [PracticeBot]
```

If your addon can run without PracticeBot:

```yaml
softdepend: [PracticeBot]
```

## Build rules

* Use Java 21 for modern Paper servers matching PracticeBot's supported runtime.
* Use the API jar with `provided` scope.
* Do not shade the PracticeBot API into your addon jar.
* Do not depend on internal classes.
* Resolve the API after PracticeBot has loaded.


---

# 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://edelweiss-network.gitbook.io/practicebot/setup-and-dependency.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.
