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


---

# 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://ajneb97.gitbook.io/complexturrets/commands-and-permissions.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.
