# Functions

{% hint style="info" %}
The command arguments shown below are default and can be freely customizable in the config under `command.function.<function>`. You can also disable a function by specifying it as an empty list.
{% endhint %}

## Repair

`/repair all [target]` (permission: `repairitem.all.<self|other>`)

`/repair inv [target]` (permission: `repairitem.inventory.<self|other>`)

`/repair armor [target]` (permission: `repairitem.armor.<self|other>`)

`/repair hotbar [target]` (permission: `repairitem.hotbar.<self|other>`)

`/repair hands [target]` (permission: `repairitem.bothhands.<self|other>`)

`/repair mainhand [target]` (permission: `repairitem.mainhand.<self|other>`)

`/repair offhand [target]` (permission: `repairitem.offhand.<self|other>`)

**Repairs the items inside the target player's inventory (or all online players, see below). If the target argument is not provided, repairs items inside your inventory (in this case the command must not be run from console).**

To issue a repair for all online players, use `all` or `*` as `[target]`. You can configure the alias for all players under `command.target.all`.

If the target argument is not used, the sender of the command must have the `repairitem.<function>.self` permission. If the argument is used, the permission `repairitem.<function>.other` is required.

| Repair function | Items                                |
| --------------- | ------------------------------------ |
| All             | All items                            |
| Inventory       | Inventory items, excluding the armor |
| Armor           | Armor                                |
| Hotbar          | Hotbar items                         |
| Both hands      | Items in both hands                  |
| Main-hand       | Item in the main-hand                |
| Off-hand        | Item in the off-hand                 |

## Reloading

`/repair reload` (permission: `repairitem.reload`, admins only)

**Reloads the plugin configuration.**

Does not update the arguments assigned to functions. To reload everything, including those settings, restart the server.

## Help

`/repair help` (permission: `repairitem.help`)

**Displays the help page.**
