# Command

### Player Commands

| Command         | Description                    |
| --------------- | ------------------------------ |
| `/varpaintball` | Toggle the paintball interface |

***

### Admin Commands

All admin commands require the `paintball.admin` ACE permission.

| Command                    | Description                            |
| -------------------------- | -------------------------------------- |
| `/pb_forcestart <lobbyId>` | Force-start a lobby                    |
| `/pb_forcestop <matchId>`  | Force-stop an ongoing match            |
| `/pb_kick <playerId>`      | Kick a player from paintball           |
| `/pb_status`               | Display all active matches and lobbies |

***

### ACE Permission Setup

Add to your `server.cfg`:

```cfg
# By identifier
add_ace identifier.license:xxxxx paintball.admin allow

# By group
add_ace group.admin paintball.admin allow
```

#### Examples

**Force-start a lobby :**

```
/pb_forcestart 1
```

**Stop an ongoing match :**

```
/pb_forcestop 1
```

**Kick a player (server ID) :**

```
/pb_kick 5
```

**View status :**

```
/pb_status
```

The `/pb_status` command displays :

* List of active lobbies with their ID, player count, and state
* List of ongoing matches with their ID, arena, mode, and players
