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

# Updating

Replace the jar and keep your settings, tables and stats.

Replace the old jar with the new one and restart the server. Your files and your data are kept.

{% hint style="info" %}
Stop the server when no round is being played if you can. If a round is open when the server stops, the bets are given back when it starts again (see [Money safety](/rnsetups/rncasino/guides/money-safety.md)).
{% endhint %}

## What happens to your files

* **New options are added** to `config.yml`, `menus.yml` and the language files, with their comments, in the right place. Your values, comments and order are not changed. Before saving, the plugin checks that the new file still has every value you had; if not, it writes nothing.
* **A copy of the old file** is saved in `plugins/rnCasino/backups/` before anything is changed.
* **Options renamed** in a future version are moved for you. `config-version` tells the plugin which version your file is, so do not change it.
* Your own language files (like `languages/fr.yml`) also get the new texts, in English, so you can translate them.

The console tells what was done, for example:

```
[rnCasino] Added 1 new option(s) to config.yml: payouts.green-american. Backup of your old file: backups/config-2026-10-23_14-29-30.yml
```

## Things that are never replaced

* Your values in `config.yml` and your layouts in `menus.yml`.
* Your tables (`tables/*.yml`).
* The texts you changed in `languages/`.
* Stats, history and self-exclusions in the database (`data/casino.db` or MySQL).

## Backups

* The plugin keeps the **10 newest copies** of each file in `backups/` and deletes older ones.
* Changes made with `/casino editor` and `/casino edit` are backed up too, at most once every 10 minutes per file.

{% hint style="info" %}
If a file has a mistake (for example a missing quote), the plugin does not change it. It shows the line and how to fix it in the console, and uses the default values for that file until you fix it and run `/casino reload` (or save it again with `auto-reload` on).
{% endhint %}

## Update notifications

When `update-checker` is `true`, rnCasino checks for a new version a few seconds after the server starts and every 6 hours. When there is one:

* The console shows one line:

```
[rnCasino] A new version of rnCasino is available: 1.0.1 (you have 1.0.0). Download: <download page>
```

* Players with `rncasino.update` (operators, and everyone with `rncasino.admin`) get a message a few seconds after they join, with clickable download links.

`/casino version` shows the installed version and the newest one. The check runs in the background: without internet nothing is shown and nothing breaks. To turn it off, set `update-checker: false` in `config.yml` (or switch it in `/casino editor`). The text of the message is `update.available` in the language files.
