> For the complete documentation index, see [llms.txt](https://edseries-plugins.gitbook.io/p/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://edseries-plugins.gitbook.io/p/edcoinflip/getting-started/configuration.md).

# Configuration

`config.yml`. `/cf reload` applies everything except `storage.type`, which is read when the server starts.

```yaml
tax-percent: 5               # percent of the pot kept as tax; the winner gets 2 x bet - tax
max-open-per-player: 1       # raised by edcoinflip.max-open.<n> (the highest a player has counts)
confirm-join: true           # confirm menu before joining (false = join on click)
sort: highest                # list order: highest, lowest, newest, oldest
default-currency: ''         # currency of '/cf <amount>' ('' = the first enabled one)
open-game-expiry-hours: 72   # unjoined coinflips are refunded after this long (0 = never)
```

## Number format

```yaml
number-format:
  style: full                # full = 1,250,000.5   short = 1.25M (a currency may choose its own)
  thousands-separator: ','
  decimal-separator: '.'
  short-decimals: 2
  abbreviations: [k, M, B, T, Q, Qn, Sx, Sp, O, N, D, Ud, Dd, Td, Qd, Qnd, Sxd, Spd, Od, Nd, V]
```

Players can type amounts as `1500`, `1,500`, `1.5k`, `2M` (suffixes are case-insensitive, the longest match wins), `1.000,5` or `1e6`. Amounts are exact decimals; 10^36 and more, or more than 30 decimals, are refused as invalid. A bet is rounded down to its currency's `decimals`.

## Menus

```yaml
guis:
  list: 'coinflip'               # file names in guis/ without .yml
  confirm: 'coinflip-confirm'
  animation: 'coinflip-animation'
  click-cooldown-ms: 150         # clicks of one player closer together than this are ignored
```

## Other sections

| Section      | Page                                                                                   |
| ------------ | -------------------------------------------------------------------------------------- |
| `currencies` | [Currencies](/p/edcoinflip/getting-started/currencies.md)                              |
| `storage`    | [Storage & MySQL](/p/edcoinflip/getting-started/storage.md)                            |
| `animation`  | [The 3D Flip](/p/edcoinflip/coinflips/scene.md) (the flip menu settings are there too) |
