# API Usage

{% hint style="info" %}
I currently do not intend to focus on adding an intensive API. I will add things overtime, when I have the spare time to do so. Please do not request it as it will be ignored.&#x20;

Support will not be given to help you implement the API.&#x20;
{% endhint %}

{% hint style="warning" %}
There is no maven repoistory for this project. You will need to add the jar to your project manually.
{% endhint %}

## Available Events

<table data-view="cards"><thead><tr><th></th><th></th><th><select multiple><option value="173e82d481f24b59a62451b7d3c4015f" label="getName()" color="blue"></option><option value="c79973c4a6494912ad38d54029623c6c" label="getDuration()" color="blue"></option><option value="24200ba69124436688d2d789d2087f17" label="getTier()" color="blue"></option><option value="9b2995d273914230972108b3268300ad" label="isHotSpot()" color="blue"></option><option value="1474b318b69043558407debbbef8ad45" label="getFishNumber()" color="blue"></option></select></th></tr></thead><tbody><tr><td><mark style="color:green;"><strong>TournamentStartEvent</strong></mark></td><td>This event is fired when a tournament starts.</td><td><span data-option="173e82d481f24b59a62451b7d3c4015f">getName()</span></td></tr><tr><td><mark style="color:green;"><strong>TournamentEndEvent</strong></mark></td><td>This event is fired when a tournament ends.</td><td><span data-option="173e82d481f24b59a62451b7d3c4015f">getName()</span></td></tr><tr><td><mark style="color:green;"><strong>PyroFishCatchEvent</strong></mark></td><td>This event is fired when catching a custom fish.</td><td><span data-option="24200ba69124436688d2d789d2087f17">getTier(), </span><span data-option="1474b318b69043558407debbbef8ad45">getFishNumber(), </span><span data-option="9b2995d273914230972108b3268300ad">isHotSpot()</span></td></tr></tbody></table>

Example Usage:

```java
@EventHandler
public void onTournamentStart(TournamentStartEvent event) {
  String tournamentName = event.getName();
}
```


---

# 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://pyrotempus.gitbook.io/pyro-plugins/pyrofishingpro/setup-manual/api-usage.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.
