# Overview

Official documentation for creating addons that integrate with Zentrix Battle Royale.

## Features

* Query games, players, teams, phases, and stats
* React to gameplay via events
* Register custom recipes with craft limits
* Store addon data under `plugins/Zentrix/addons/<addon-id>/`

## Quick Start

```java
public final class MyAddon extends ZentrixAddon {
    @Override
    protected void onAddonEnable() {
        // Access the API
        ZentrixAPI api = ZentrixAPI.get();
        
        // Use services
        api.getGameService().getActiveGames();
    }
}
```

## Resources

* [Javadocs](https://itsharshxd.github.io/ZentrixAPI/) - API reference
* [Example Addon](https://github.com/ItsHarshXD/ZentrixExampleAddon) - Working example

## Requirements

* Java 21+
* Paper 1.21.9-.1.21.10
* Zentrix plugin installed


---

# 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://zentrix.gitbook.io/docs/dev-api/readme.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.
