> 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/reference/commands.md).

# Commands and permissions

Every command and permission of rnCasino.

The command is `/casino`, also `/rncasino`, `/ruleta` and `/rlt`. `/roulette` (the command of 1.0.0) still works too. Commands that work on a table use the nearest one (16 blocks) when you don't name it.

## Players

| Command                                                 | What it does                                                                              | Permission                                  |
| ------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ------------------------------------------- |
| `/casino`                                               | Bet menu of the table near you                                                            | `rncasino.play`                             |
| `/casino help`                                          | The list of commands                                                                      | everyone                                    |
| `/casino bet <spot> [amount] [table]`                   | Bets on a spot (without an amount: your chip)                                             | `rncasino.play`                             |
| `/casino bet remove <spot> [table]`                     | Takes your chips off a spot                                                               | `rncasino.play`                             |
| `/casino chip <amount> [table]`                         | Picks your chip                                                                           | `rncasino.play`                             |
| `/casino repeat` / `double` / `undo` / `clear`          | Repeat the last round, double your bets, take back the last chip, take all your chips off | `rncasino.play`                             |
| `/casino menu [bet\|more\|stats\|top\|history] [table]` | Opens a menu                                                                              | `rncasino.play`                             |
| `/casino stats [player]`                                | Your stats                                                                                | (another player's: `rncasino.stats.others`) |
| `/casino top`                                           | Top players                                                                               | everyone                                    |
| `/casino history [table]`                               | Last results of the table                                                                 | everyone                                    |
| `/casino fair [table]`                                  | Code of this round, seed of the last one, and how to check it                             | everyone                                    |
| `/casino exclude <days>`                                | Stop yourself from betting for some days                                                  | everyone                                    |

Spots: `0`-`36`, `00`, `red`, `black`, `green`, `even`, `odd`, `low`, `high`, `dozen-1`/`2`/`3`, `column-1`/`2`/`3` (Spanish names work too).

## Admins

| Command                                                          | What it does                                                   | Permission        |
| ---------------------------------------------------------------- | -------------------------------------------------------------- | ----------------- |
| `/casino create <name> [european\|american] [modern\|classic]`   | Builds a table in front of you, in the style you choose        | `rncasino.create` |
| `/casino remove <table>`                                         | Removes a table (asks first; bets are given back)              | `rncasino.create` |
| `/casino move <table>`                                           | Moves it to where you stand, facing where you look             | `rncasino.edit`   |
| `/casino rotate <table>`                                         | Turns it 90°                                                   | `rncasino.edit`   |
| `/casino rebuild <table>`                                        | Builds the 3D model again                                      | `rncasino.edit`   |
| `/casino list`                                                   | Every table (a menu in game, a list in the console)            | `rncasino.edit`   |
| `/casino edit <table>`                                           | Edit menu of a table                                           | `rncasino.edit`   |
| `/casino tp <table>`                                             | Teleports you to a table                                       | `rncasino.tp`     |
| `/casino editor`                                                 | Editor of `config.yml`                                         | `rncasino.editor` |
| `/casino reload`                                                 | Reads every file again                                         | `rncasino.reload` |
| `/casino open <bet\|more\|stats\|top\|history> <player> [table]` | Opens a menu for a player (NPCs, menu plugins, console)        | `rncasino.open`   |
| `/casino spin <table>`                                           | Closes the bets now                                            | `rncasino.spin`   |
| `/casino cancel <table>`                                         | Cancels the round and gives every bet back                     | `rncasino.cancel` |
| `/casino status <table>`                                         | One line with the state of the table (for scripts and support) | `rncasino.admin`  |
| `/casino unexclude <player>`                                     | Ends a player's self-exclusion                                 | `rncasino.admin`  |
| `/casino version`                                                | Installed and newest version                                   | `rncasino.update` |

<figure><img src="https://i.imgur.com/g34EvBE.png" alt="/casino list"><figcaption><p>/casino list</p></figcaption></figure>

## Permissions

| Permission              | Default  | What it gives                                                   |
| ----------------------- | -------- | --------------------------------------------------------------- |
| `rncasino.play`         | everyone | Bet at the tables (on the cloth, in the menu and with commands) |
| `rncasino.admin`        | op       | Every permission below                                          |
| `rncasino.create`       | op       | `create`, `remove`                                              |
| `rncasino.edit`         | op       | `edit`, `move`, `rotate`, `rebuild`, `list`                     |
| `rncasino.editor`       | op       | `/casino editor`                                                |
| `rncasino.reload`       | op       | `/casino reload`                                                |
| `rncasino.open`         | op       | `/casino open`                                                  |
| `rncasino.tp`           | op       | `/casino tp`                                                    |
| `rncasino.spin`         | op       | `/casino spin`                                                  |
| `rncasino.cancel`       | op       | `/casino cancel`                                                |
| `rncasino.update`       | op       | Update notices and `/casino version`                            |
| `rncasino.stats.others` | op       | `/casino stats <player>`                                        |

Each table can ask for one more permission (`permission` in its file), for example `rncasino.table.vip` for a VIP table. Any name works.

## For NPCs and menu plugins

`/casino open bet <player> <table>` opens the bet menu of a table for a player, from the console or another plugin. For example, a Citizens NPC next to the table (`<p>` is the player who clicks it in Citizens):

```
/npc command add casino open bet <p> main
```
