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

# Placeholders

PlaceholderAPI placeholders of rnCasino.

Needs [PlaceholderAPI](https://modrinth.com/plugin/placeholderapi). Values are plain text (no colors), ready for scoreboards and holograms.

## The player

| Placeholder                             | Value                                         |
| --------------------------------------- | --------------------------------------------- |
| `%rncasino_rounds%`                     | Rounds played                                 |
| `%rncasino_wins%` / `%rncasino_losses%` | Rounds won / lost                             |
| `%rncasino_wagered%`                    | Total bet                                     |
| `%rncasino_returned%`                   | Total got back                                |
| `%rncasino_profit%`                     | Profit (can be negative)                      |
| `%rncasino_biggest%`                    | Biggest win                                   |
| `%rncasino_today%`                      | Profit today                                  |
| `%rncasino_today_rounds%`               | Rounds today                                  |
| `%rncasino_excluded%`                   | `yes` while the player is excluded, else `no` |

These are for money. For points, put `playerpoints_` first: `%rncasino_playerpoints_profit%`, `%rncasino_playerpoints_rounds%`...

## A table

`<id>` is the name of the table (`main`).

| Placeholder                     | Value                                                  |
| ------------------------------- | ------------------------------------------------------ |
| `%rncasino_table_<id>_state%`   | `waiting`, `betting`, `closed`, `spinning` or `result` |
| `%rncasino_table_<id>_time%`    | Seconds left of the bets                               |
| `%rncasino_table_<id>_players%` | Players with chips on the table                        |
| `%rncasino_table_<id>_total%`   | Money on the table                                     |
| `%rncasino_table_<id>_last%`    | Last number                                            |
| `%rncasino_table_<id>_round%`   | Round number                                           |

## Top players

`%rncasino_top_<kind>_<place>_name%` and `%rncasino_top_<kind>_<place>_value%`, with `<kind>` one of `profit`, `biggest`, `wagered`, `wins` and `<place>` from 1 to 10.

* `%rncasino_top_profit_1_name%` → `Lucky_Lisa`
* `%rncasino_top_profit_1_value%` → `$104,500`
* For points, add `playerpoints` after the kind: `%rncasino_top_profit_playerpoints_1_name%`

Top lists are read from the database in the background and kept for one minute, so scoreboards that ask every tick cost nothing.

Placeholders of other plugins can also be used in every text of the language files.
