# Commands and permissions

#### Basic permissions

| Permission               | Description                                    | Added by default? |
| ------------------------ | ---------------------------------------------- | ----------------- |
| `restaurantrush.*`       | Gives access to all plugin features.           | No                |
| `restaurantrush.play.*`  | Allows to play minigame and use basic commands | Yes               |
| `restaurantrush.setup.*` | Allows to use game setup commands              | No                |
| `restaurantrush.staff.*` | Allows to moderate game                        | No                |
| `restaurantrush.vip`     | Allows to join vip arenas                      | No                |
| `restaurantrush.bypass`  | Allows to use blocked commands in arena        | No                |

#### Player commands and permissions (restaurantrush.play)

| Command              | Description                             | Permission                         |
| -------------------- | --------------------------------------- | ---------------------------------- |
| `/rr`                | Main plugin command - opens help page   | `restaurantrush.play.help`         |
| `/rr help`           | Open help page                          | `restaurantrush.play.help`         |
| `/rr join <arena>`   | Join specified arena                    | `restaurantrush.play.join`         |
| `/rr leave`          | Leave current game                      | `restaurantrush.play.leave`        |
| `/rr quickjoin`      | Join arena which will start the fastest | `restaurantrush.play.quickjoin`    |
| `/rr stats`          | Show your game stats                    | `restaurantrush.play.stats`        |
| `/rr stats <player>` | Show other player's game stats          | `restaurantrush.play.stats.others` |
| `/rr list`           | Show arena list                         | `restaurantrush.play.list`         |
| `/rr arenasmenu`     | Open arenas menu                        | `restaurantrush.play.menu`         |
| `-`                  | Join games by signs                     | `restaurantrush.play.signs`        |

#### Staff commands and permissions (restaurantrush.staff)

| Command                              | Description                  | Permission                    |
| ------------------------------------ | ---------------------------- | ----------------------------- |
| `/rr staff`                          | Open staff help page         | `restaurantrush.staff.help`   |
| `/rr forcestart <arena>`             | Force arena to start         | `restaurantrush.staff.start`  |
| `/rr forcestop <arena>`              | Force arena to stop          | `restaurantrush.staff.stop`   |
| `/rr setactive <arena> <true/false>` | Activate or deactivate arena | `restaurantrush.staff.active` |
| `/rr kick <player>`                  | Kick player from the game    | `restaurantrush.staff.kick`   |

#### Arena setup commands and permissions (restaurantrush.setup)

| Command                                                      | Description                              | Permission                             |
| ------------------------------------------------------------ | ---------------------------------------- | -------------------------------------- |
| `/rr admin`                                                  | Open administrator help page             | `restaurantrush.setup.help`            |
| `/rr create <arena>`                                         | Create a new arena                       | `restaurantrush.setup.create`          |
| `/rr delete <arena>`                                         | Delete an existing arena                 | `restaurantrush.setup.delete`          |
| `/rr setvip <arena> <true/false>`                            | Set arena as VIP or not                  | `restaurantrush.setup.setvip`          |
| `/rr setmainlobby <arena>`                                   | Set main lobby for arena                 | `restaurantrush.setup.setmainlobby`    |
| `/rr setwaitingloby <arena>`                                 | Set waiting lobby for arena              | `restaurantrush.setup.setwaitinglobby` |
| `/rr setminplayers <arena> <count>`                          | Set minimum players count for arena      | `restaurantrush.setup.setminplayers`   |
| `/rr setmaxplayers <arena> <count>`                          | Set maximum players count for arena      | `restaurantrush.setup.setmaxplayers`   |
| `/rr setspawn <arena> <player/villager> <ID>`                | Set player and villager spawns for arena | `restaurantrush.setup.setspawn`        |
| `/rr addlocation <arena> <table/fridge/oven/pantry> <ID>`    | Set block locations for arena            | `restaurantrush.setup.addlocation`     |
| `/rr removelocation <arena> <table/fridge/oven/pantry> <ID>` | Remove block location from arena         | `restaurantrush.setup.removelocation`  |
| `-`                                                          | Create or remove game signs              | `restaurantrush.setup.signs`           |
