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

# Commands & Permissions

`/coinflip` (aliases `/cf`, `/flip`, `/coinflips`).

| Command                                   | Permission         |                                                                                            |
| ----------------------------------------- | ------------------ | ------------------------------------------------------------------------------------------ |
| `/cf`                                     | `edcoinflip.use`   | opens the list                                                                             |
| `/cf <amount> [currency]`                 | `edcoinflip.use`   | creates a coinflip (`default-currency` without a currency)                                 |
| `/cf create <amount> [currency]`          | `edcoinflip.use`   | the same                                                                                   |
| `/cf cancel`                              | `edcoinflip.use`   | cancels all your open coinflips (refunded)                                                 |
| `/cf help`                                | `edcoinflip.use`   | the commands (admins see theirs too)                                                       |
| `/cf reload`                              | `edcoinflip.admin` | config, messages, currencies and menus                                                     |
| `/cf cancel <id>`                         | `edcoinflip.admin` | cancels any coinflip and refunds its creator                                               |
| `/cf preview [player] [win\|lose]`        | `edcoinflip.admin` | plays the 3D flip for you, nothing at stake                                                |
| `/cf migrate <yaml\|mysql> <yaml\|mysql>` | `edcoinflip.admin` | copies the data to the other storage ([Storage](/p/edcoinflip/getting-started/storage.md)) |

| Permission                | Default  |                                                                                     |
| ------------------------- | -------- | ----------------------------------------------------------------------------------- |
| `edcoinflip.use`          | everyone | create, join and cancel your own coinflips                                          |
| `edcoinflip.admin`        | op       | the admin commands                                                                  |
| `edcoinflip.max-open.<n>` | none     | may keep `n` coinflips open (the highest counts; never below `max-open-per-player`) |
| a currency's `permission` | none     | needed to bet in that currency, when set                                            |

Reload, migrate, `cancel <id>` and help also work from the console.
