> For the complete documentation index, see [llms.txt](https://ajneb97.gitbook.io/complexturrets/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ajneb97.gitbook.io/complexturrets/commands-and-permissions.md).

# Commands and Permissions

## Commands

**Alias:** /turret and /turrets

| Command                                         | Description                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| ----------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| **/ct give  \<turret> \<player>**               | <p>Gives a turret to the player. Use the name of the turret</p><p>file without the ".yml".</p>                                                                                                                                                                                                                                                                                                                                                         |
| **/ct giveammo \<turret> \<player> \<amount>**  | Gives ammo to the player.                                                                                                                                                                                                                                                                                                                                                                                                                              |
| **/ct reload**                                  | Reloads the config.                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| **/ct verify**                                  | Checks the plugin for errors.                                                                                                                                                                                                                                                                                                                                                                                                                          |
| **/ct list**                                    | Lists all of your turrets.                                                                                                                                                                                                                                                                                                                                                                                                                             |
| **/ct migrate**                                 | Migrates data from DefensiveTurrets.                                                                                                                                                                                                                                                                                                                                                                                                                   |
| **/ct help**                                    | Shows this message.                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| **/ct setdamage \<min\_damage> \<max\_damage>** | <p>Sets a custom turret damage to bow or crossbow items. For example, you can use <code>/ct setdamage 20 30</code> with a bow in your hand and this bow will now do from 20 to 30 damage to turrets.</p><p></p><p>You can save this item using other plugins, then give it to players. If you don't use the command on a bow, it will use the default damage values in the config. Use <code>/ct setdamage 0 0</code> to remove the custom damage.</p> |
| **/ct remove \<all/world>**                     | <p>Removes all turrets:<br><code>/ct remove all</code><br><br>Removes all turrets in certain world:<br><code>/ct remove world \<world></code></p>                                                                                                                                                                                                                                                                                                      |

## Permissions

| Permission                                                                                                                                                                                                                                                                                              | Description                                                                                                                                                                                                                                            |
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| **complexturrets.admin**                                                                                                                                                                                                                                                                                | Access to all funtionalities of the plugin.                                                                                                                                                                                                            |
| **complexturrets.open**                                                                                                                                                                                                                                                                                 | Allows to open other people's turrets.                                                                                                                                                                                                                 |
| <p><strong>complexturrets.options.attackplayers</strong></p><p><strong>complexturrets.options.attackmonsters</strong></p><p><strong>complexturrets.options.attackanimals</strong></p><p><strong>complexturrets.options.attackothers</strong></p><p><strong>complexturrets.options.priority</strong></p> | Allows to change turret attack options.                                                                                                                                                                                                                |
| **complexturrets.infiniteammo**                                                                                                                                                                                                                                                                         | <p>Allow players to activate the infinite ammo <br>item on turrets</p>                                                                                                                                                                                 |
| **complexturrets.use.\<turret>**                                                                                                                                                                                                                                                                        | <p>Used when <code>per\_turret\_permissions</code> option is</p><p>enabled in the config.</p>                                                                                                                                                          |
| **complexturrets.limit.\<x>**                                                                                                                                                                                                                                                                           | Used when `turret_limit_permissions` is enabled on the config. For example, groups with the permission complexturrets.limit.5 will be able to place a maximum of 5 turrets. If a group doesn't have a limit permission the default limit will be used. |
| **complexturrets.destroynotfullhealth**                                                                                                                                                                                                                                                                 | Allow players to destroy their turrets even with no full health.                                                                                                                                                                                       |
| **complexturrets.command.list**                                                                                                                                                                                                                                                                         | Give access to /ct list command.                                                                                                                                                                                                                       |
