# Kicking

Staff++ adds its own kick command. When used, a history of the kicks will be preserved. Kicks also will be shown in the [infractions](https://wiki.staffplusplus.org/features/infractions) menu.

### Permissions

View [permissions](https://wiki.staffplusplus.org/permissions-and-commands/permissions) page

### Commands

| Command                    | Description                                            |
| -------------------------- | ------------------------------------------------------ |
| /kick \[player] \[reason?] | Kicks a player from the server. With specified reason. |

### Config

```yaml
kick-module:
  # Whether or not the plugin will use "/kick" features.
  enabled: false
  # If set to true, staff members will no longer have the ability 
  # to specify a custom reason
  fixed-reason: false
  # Possible kick reasons, when defined the staff member will see
  # a reason selection GUI
  reasons: []
```

### Examples

#### Kick with custom reason&#x20;

```yaml
/kick myplayer He was spamming
```

#### Kick with reason select:

```
/kick myplayer
```

```yaml
kick-module:
  enabled: true
  fixed-reason: false
  reasons:
  - reason: ANNOYING
    material: PAPER
    info: he is ANNOYING
  - reason: SPAM
    material: PAPER
    info: Use when a player is spamming
```

![](https://3621425798-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MPQohtcLxhXAvpSXOMt%2F-Mchk7fnkixx1wB-MfrR%2F-MchnHIwpyrDNv8VG1Lm%2Fkick_selection.PNG?alt=media\&token=ec087cdd-13b8-44ad-ad2b-d49f552c17cb)

#### Kick with default reason

```
/kick myplayer
```

```yaml
kick-module:
  enabled: true
  fixed-reason: false
  reasons:
  - reason: SPAM
    material: PAPER
    info: Use when a player is spamming
```

{% hint style="info" %}
No reason selection is shown because only one reason is available.
{% endhint %}
