# 🔒 Permissions

## General Permissions

**General Permissions**

| Permission                 | Description                                                |
| -------------------------- | ---------------------------------------------------------- |
| phoenixduels.admin         | Grants access to everything regarding the plugin, including `/pduels doctor` and `/pduels dashboard`. |
| phoenixduels.region.bypass | Allows entering the region of any ongoing match.           |
| phoenixduels.admin.spy     | Receives the team chat messages of every ongoing match.    |

## Command Permissions

By default every command is open to all players. Set `commands.require-permission` to **true** in the main configuration to make the commands below require a permission.

**Command Permissions**

| Permission                                | Description                                          |
| ----------------------------------------- | ---------------------------------------------------- |
| phoenixduels.commands.duels               | Allows using the duel settings and spectate commands. |
| phoenixduels.commands.queue               | Allows using the queue command.                      |
| phoenixduels.commands.party               | Allows using the party command.                      |
| phoenixduels.commands.stats               | Allows using the stats command.                      |
| phoenixduels.commands.kiteditor           | Allows using the kit editor command.                 |
| phoenixduels.commands.duellostitems       | Allows using the lost items command.                 |
| phoenixduels.commands.trims               | Allows using the trims command.                      |
| phoenixduels.commands.duelhistory.others  | Allows viewing the match history of another player.  |

## Feature Permissions

**Feature Permissions**

| Permission                          | Description                                                |
| ----------------------------------- | ---------------------------------------------------------- |
| phoenixduels.trims.use              | Allows opening the trims menu.                             |
| phoenixduels.kitlayouts.trims       | Allows applying trims to a premade kit layout.             |
| phoenixduels.replay.watch           | Allows watching a replay from the match history.           |
| phoenixduels.party.create           | Allows creating a party, when `party.require-permission-to-create` is enabled. |
| phoenixplugins.killeffect.\<effect> | Allows selecting the kill effect matching `<effect>`.      |
| phoenixplugins.trim.pattern.\<pattern> | Allows using the trim pattern matching `<pattern>`. Applies to the trims menu, premade kit layouts and player kits. |
| phoenixplugins.trim.material.\<material> | Allows using the trim material matching `<material>`. Applies to the trims menu, premade kit layouts and player kits. |

## Mode & Kit Permissions

Each mode and each kit can be configured to require its own permission before a player is allowed to use it. Turn it on with `permission.required` and set the node with `permission.permission` in that mode or kit configuration file.

**Mode & Kit Permissions**

| Permission                | Description                                             |
| ------------------------- | ------------------------------------------------------- |
| phoenixduels.mode.\<id>   | Allows queueing and duelling on the mode matching `<id>`. |
| phoenixduels.kit.\<id>    | Allows using the kit matching `<id>`.                   |

## Slot Permissions

Slot permissions are configurable pairs of an amount and a permission node. A player receives the highest amount they have a permission for.

**Slot Permissions**

| Permission                            | Description                                                  |
| ------------------------------------- | ------------------------------------------------------------ |
| phoenixduels.partymembers.\<number>   | Raises the party size limit. Defaults are `phoenixduels.partymembers.10` and `phoenixduels.partymembers.15`. |
| phoenixduels.playerkits.\<number>     | Raises the amount of player kit slots. Requires the Player Kits add-on. |

Source: https://www.phoenixplugins.com/docs/phoenix-duels/plugins/permissions