# Addon Command

{% hint style="danger" %}
This command is considered an *<mark style="color:red;">**ADMIN ONLY**</mark>* command\
Ordinary players should *<mark style="color:red;">**NOT**</mark>* be given access to this command
{% endhint %}

## What does this command do?

This command opens a GUI that allows you to toggle already installed addons, or allows you to install addons from our database

## Command Usage

> <mark style="color:orange;">`<>`</mark> = REQUIRED
>
> <mark style="color:blue;">`[]`</mark> = OPTIONAL
>
> Usage: /pet addon <mark style="color:blue;">`[reload|update|install] [addon]`</mark>

### Usage Descriptions

| Usage                                                         | Description                                                                                                                                                                                 |
| ------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| /pet addon                                                    | The GUI that opened shows all the addons currently installed on your server.                                                                                                                |
| /pet addon reload                                             | <p>Reloads <mark style="color:red;"><strong>ALL</strong></mark> the addons currently installed<br><mark style="color:green;"><code>(Used for reloading addon config data)</code></mark></p> |
| /pet addon install <mark style="color:blue;">`[addon]`</mark> | <p>Will install the selected addon, it will also attempt to enable it.<br>Example: <mark style="color:green;"><code>/pet addon install PetWeight</code></mark></p>                          |
| /pet addon update <mark style="color:blue;">`[addon]`</mark>  | <p>Updates the targeted addon to the newest version<br>Example: <mark style="color:green;"><code>/pet addon update PetWeight</code></mark></p>                                              |

## Permissions

| Permission Node            | Description                                                                                            |
| -------------------------- | ------------------------------------------------------------------------------------------------------ |
| pet.commands.addon         | Grants the player access to run <mark style="color:red;">`/pet addon`</mark>                           |
| pet.commands.addon.reload  | Grants the player access to reload the addons via <mark style="color:red;">`/pet addon reload`</mark>  |
| pet.commands.addon.install | Grants the player access to reload the addons via <mark style="color:red;">`/pet addon install`</mark> |
| pet.commands.addon.update  | Grants the player access to reload the addons via <mark style="color:red;">`/pet addon update`</mark>  |


---

# 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://wiki.bsdevelopment.org/command-information/commands/addon-command.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.
