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

# Commands & Permissions

## Players

| Command          | Permission                 | What it does                                                                                                       |
| ---------------- | -------------------------- | ------------------------------------------------------------------------------------------------------------------ |
| `/mortar [type]` | `edmortars.use` (everyone) | Opens your own mortar's menu from anywhere: unlock while locked, upgrades once unlocked. Your mine must be loaded. |

## Admins

`/edmortars` (alias `/mortars`), permission `edmortars.admin` (op).

| Command                                                                    | What it does                                                                                                                                              |
| -------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `/edmortars reload`                                                        | Reloads config.yml, messages.yml and every mortar type, installs missing menus, rebuilds live mortars                                                     |
| `/edmortars list`                                                          | Lists the mortar types                                                                                                                                    |
| `/edmortars unlock <player> <type>`                                        | Unlocks a mortar (works offline, nothing is taken)                                                                                                        |
| `/edmortars lock <player> <type>`                                          | Locks it again                                                                                                                                            |
| `/edmortars resetcooldown <player> <type>`                                 | Makes it ready to fire                                                                                                                                    |
| `/edmortars setlevel <player> <type> <chance\|multiplier\|radius> <level>` | Sets an upgrade level (works offline, clamped to the max)                                                                                                 |
| `/edmortars fire <player> <type>`                                          | Fires the player's placed mortar now, skipping the cooldown and shell limit                                                                               |
| `/edmortars info <player>`                                                 | Shows a player's unlocks, upgrade levels and cooldowns                                                                                                    |
| `/edmortars migrate <yaml\|mysql> <yaml\|mysql>`                           | Copies every player's data from one storage to the other in the background and reports the count (see [Storage](/p/edmortars/getting-started/storage.md)) |

Offline players are found by the name they last played with.

## Permissions

| Permission        | Default  | Meaning      |
| ----------------- | -------- | ------------ |
| `edmortars.use`   | everyone | `/mortar`    |
| `edmortars.admin` | op       | `/edmortars` |

Unlock requirements can use any permission of your own (`type: permission`).
