# 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>  |
