> 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/getting-started/files.md).

# Files overview

```
plugins/rnChatGames/
├── config.yml          main settings: automatic games, worlds, display, sounds, database, each game
├── rewards.yml         what winners get
├── menus.yml           materials and slots of the menus
├── languages/
│   ├── en.yml          every message, title and menu text in English
│   └── es.yml          the same in Spanish
├── content/
│   ├── en.yml          words, trivia, multiple choice and phrases in English
│   └── es.yml          the same in Spanish
├── data/
│   └── database.db     stats (SQLite). Not used with MySQL
└── backups/            copies made before the plugin changes one of your files
```

| File          | Page                                                                      |
| ------------- | ------------------------------------------------------------------------- |
| `config.yml`  | [config.yml](/rnsetups/rnchatgames/configuration/config.md)               |
| `rewards.yml` | [Rewards](/rnsetups/rnchatgames/configuration/rewards.md)                 |
| `menus.yml`   | [Menus](/rnsetups/rnchatgames/configuration/menus.md)                     |
| `languages/`  | [Messages and languages](/rnsetups/rnchatgames/configuration/messages.md) |
| `content/`    | [Words and questions](/rnsetups/rnchatgames/configuration/content.md)     |
| `data/`       | [Database](/rnsetups/rnchatgames/reference/database.md)                   |

## Applying changes

With `auto-reload: true` (default), changes are applied a few seconds after you save a file. The game that is running is not stopped.

You can also use `/rncg reload` (it stops the running game).

## Text format

Every text accepts:

* **MiniMessage**: `<green>`, `<#ff8800>`, `<gradient:#ff8800:#00ccff>`, `<bold>`, `<click:...>`, `<hover:...>`
* **Legacy codes**: `&a`, `&l`, `&r` and hex colors `&#ff8800`

Both can be mixed in the same line. Start a line with `<center>` to center it in the chat.

{% hint style="warning" %}
YAML files need spaces, never tabs. When a text has a `'`, write it twice: `'Time''s up!'`.
{% endhint %}

## About data/database.db-wal and -shm

SQLite keeps recent changes in `database.db-wal` (and an index in `database.db-shm`) and moves them into `database.db` from time to time. They are normal. Do not delete them while the server is running. To back up the stats, stop the server and copy `database.db`, or copy the three files together.
