> For the complete documentation index, see [llms.txt](https://realisticnode.gitbook.io/rnsetups/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://realisticnode.gitbook.io/rnsetups/rnchatgames/reference/commands.md).

# Commands and permissions

Main command: `/rnchatgames` — aliases `/rncg` and `/chatgames`.

<figure><img src="https://348500357-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FSlVHklG0EMAOmvfqcizu%2Fuploads%2FEwkeMH4IGt30axzWh0Dn%2Frncg-real-24.png?alt=media" alt="/rncg help"><figcaption><p>/rncg help</p></figcaption></figure>

## Players

| Command                   | Permission                                        | What it does                        |
| ------------------------- | ------------------------------------------------- | ----------------------------------- |
| `/rncg help`              | `rnchatgames.help`                                | List of commands                    |
| `/rncg next`              | `rnchatgames.next`                                | When the next automatic game starts |
| `/rncg toggle`            | `rnchatgames.toggle`                              | Hide or show the games for yourself |
| `/rncg stats [player]`    | `rnchatgames.stats` (`.others` for other players) | Stats menu                          |
| `/rncg top [game] [page]` | `rnchatgames.top`                                 | Rankings menu (Total or one game)   |
| `/rncg list`              | `rnchatgames.list`                                | The games and whether they are on   |

All of them are given by `rnchatgames.player` (default: everyone).

## Admins

| Command                                       | Permission                                              | What it does                                                                                                                         |
| --------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------ |
| `/rncg start [game\|random] [difficulty]`     | `rnchatgames.start.<game>` / `rnchatgames.start.random` | Start a game now. Math accepts a difficulty: `/rncg start math hard`                                                                 |
| `/rncg stop`                                  | `rnchatgames.stop`                                      | Stop the running game                                                                                                                |
| `/rncg reload`                                | `rnchatgames.reload`                                    | Read every file again (stops the running game)                                                                                       |
| `/rncg editor`                                | `rnchatgames.editor`                                    | [In-game editor](/rnsetups/rnchatgames/configuration/editor.md)                                                                      |
| `/rncg preview <game> [winners] [difficulty]` | `rnchatgames.preview`                                   | Shows how a game looks, only to you. Nothing is started, saved or rewarded                                                           |
| `/rncg logs [player\|*] [game\|all] [page]`   | `rnchatgames.logs`                                      | The latest wins, with time and date                                                                                                  |
| `/rncg import sqlite [confirm]`               | `rnchatgames.import`                                    | Copy the SQLite stats into MySQL (see [Database](/rnsetups/rnchatgames/reference/database.md))                                       |
| `/rncg simulate <player> <message>`           | `rnchatgames.simulate`                                  | Testing: handles a message as if that player wrote it. `/rncg simulate <player> click right\|wrong` for the Click game               |
| `/rncg version`                               | `rnchatgames.update`                                    | Your version and the latest one (see [Update notifications](/rnsetups/rnchatgames/getting-started/updating.md#update-notifications)) |

All of them are given by `rnchatgames.admin` (default: operators).

## Every permission

| Permission                 | Default  |                                                                           |
| -------------------------- | -------- | ------------------------------------------------------------------------- |
| `rnchatgames.admin`        | op       | Every permission                                                          |
| `rnchatgames.player`       | everyone | Every player permission                                                   |
| `rnchatgames.play`         | everyone | See and play games (only checked when `players.require-permission: true`) |
| `rnchatgames.help`         | everyone | `/rncg help`                                                              |
| `rnchatgames.next`         | everyone | `/rncg next`                                                              |
| `rnchatgames.toggle`       | everyone | `/rncg toggle`                                                            |
| `rnchatgames.top`          | everyone | `/rncg top`                                                               |
| `rnchatgames.stats`        | everyone | Own stats                                                                 |
| `rnchatgames.stats.others` | everyone | Other players' stats                                                      |
| `rnchatgames.list`         | everyone | `/rncg list`                                                              |
| `rnchatgames.start.*`      | op       | Start any game                                                            |
| `rnchatgames.start.random` | op       | Start a random game                                                       |
| `rnchatgames.start.<game>` | op       | Start that game, e.g. `rnchatgames.start.math`                            |
| `rnchatgames.stop`         | op       | `/rncg stop`                                                              |
| `rnchatgames.reload`       | op       | `/rncg reload`                                                            |
| `rnchatgames.editor`       | op       | `/rncg editor`                                                            |
| `rnchatgames.preview`      | op       | `/rncg preview`                                                           |
| `rnchatgames.logs`         | op       | `/rncg logs`                                                              |
| `rnchatgames.import`       | op       | `/rncg import`                                                            |
| `rnchatgames.simulate`     | op       | `/rncg simulate`                                                          |
| `rnchatgames.bypass.world` | op       | Start games while standing in a disabled world                            |
| `rnchatgames.update`       | op       | Told about new versions when joining, and `/rncg version`                 |

Game ids: `unscramble`, `unreverse`, `reaction`, `fillout`, `random-text`, `math`, `variable`, `trivia`, `multiplechoice`, `click`, `hover`, `guess-number`, `completion`, `hangman`, `memory`, `color`.
