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

# Commands and permissions

## Players

| Command                |                                                                      |
| ---------------------- | -------------------------------------------------------------------- |
| `/lang`                | Opens the language menu (or a chat list with `menu.enabled: false`). |
| `/lang <code>`         | Picks a language.                                                    |
| `/lang auto`           | Back to the automatic language.                                      |
| `/lang list`           | The languages in chat (clickable).                                   |
| `/lang settings`       | The settings menu.                                                   |
| `/lang chat [on\|off]` | Chat translation for yourself.                                       |
| `/lang help`           | The command list.                                                    |

Aliases: `/language`, `/idioma`, `/langue`, `/sprache`, `/lingua`. Menus can add their own commands (`commands:` in a menu file).

## Admins (`edlang.admin`)

| Command                                       |                                                                                                                       |
| --------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- |
| `/edlang reload`                              | Reloads config.yml, every lang file and folder, the menus, without lag.                                               |
| `/edlang set <player> <code\|auto>`           | Sets a player's language.                                                                                             |
| `/edlang info [player]`                       | Every online player's language, or one player's details (language, mode, country, client language, chat translation). |
| `/edlang missing <code>`                      | Keys a language lacks, and keys used in texts that exist nowhere (full list in `missing-<code>.txt`).                 |
| `/edlang broadcast <key> [token=value...]`    | Sends a key to every player in their own language, with `{token}` values. For console commands in other plugins.      |
| `/edlang migrate <yaml\|mysql> <yaml\|mysql>` | Copies stored players from one storage to the other.                                                                  |
| `/edlang chat stats [days]`                   | Chat translation usage and cost.                                                                                      |
| `/edlang chat test <codes> <message>`         | Translates a message into e.g. `es,de` to test the provider.                                                          |
| `/edlang chat clear`                          | Forgets remembered translations.                                                                                      |

Every reply is an `edlang.admin.*` text of `lang/<code>/edlang.yml` (English only by default; translate them if you like).

## Permissions

| Permission            | Default  |                                                                           |
| --------------------- | -------- | ------------------------------------------------------------------------- |
| `edlang.admin`        | op       | `/edlang`.                                                                |
| `edlang.chat.toggle`  | everyone | `/lang chat` and the settings button.                                     |
| `edlang.chat.receive` | everyone | Gets chat translated.                                                     |
| `edlang.chat.nolimit` | op       | Chat translated without the per-player limit.                             |
| `edlang.bypass.input` | op       | May type working placeholders in chat, commands, signs, books and anvils. |
