> For the complete documentation index, see [llms.txt](https://docs.mantic.dev/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.mantic.dev/manticannouncements/commands-and-permissions.md). Agents can also search and read this documentation through its [MCP server](https://docs.mantic.dev/~gitbook/mcp).

# Commands and permissions

Player and administrator commands, subcommand aliases, and default permissions.

The main command is `/announcement`. Its default aliases are `/announce` and `/alerts`. You can change command names, aliases, and permission nodes in [Main config file](https://docs.mantic.dev/manticannouncements/main-config-file.md).

Every command first checks `basecommandPermission`, which defaults to `mantic.announce.basecommand`. A subcommand also checks the additional permission listed below. Grant both nodes to a player who should use a subcommand. The bare command and `help` only need the base permission.

## Commands

| Command                                 | Who can use it                                                                   | What it does                                                                           |
| --------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- |
| `/announcement` or `/announcement help` | Sender with `mantic.announce.basecommand`                                        | Shows the help page.                                                                   |
| `/announcement toggle`                  | Player with the base permission and `mantic.announce.toggle`                     | Turns scheduled chat announcements on or off.                                          |
| `/announcement togglesound`             | Player with the base permission and `mantic.announce.togglesound`                | Turns announcement sounds on or off.                                                   |
| `/announcement toggletitle`             | Player with the base permission and `mantic.announce.toggletitle`                | Turns announcement titles and subtitles on or off.                                     |
| `/announcement toggleactionbar`         | Player with the base permission and `mantic.announce.toggleactionbar`            | Turns announcement action bars on or off.                                              |
| `/announcement show <id>`               | Player with the base permission and `mantic.announce.show`                       | Sends the configured announcement with that ID to the player immediately.              |
| `/announcement reload`                  | Sender, including console, with the base permission and `mantic.announce.reload` | Reloads `config.yml` and `announcements.yml`, then restarts the announcement schedule. |
| `/announcement reload -s`               | Sender, including console, with the base permission and `mantic.announce.reload` | Reloads the files without the success message.                                         |

Player preferences are stored by the plugin. Chat announcements, sounds, titles, and action bars can be toggled independently.

## Default subcommand aliases

| Subcommand        | Aliases                         |
| ----------------- | ------------------------------- |
| `help`            | `?`                             |
| `reload`          | None                            |
| `toggle`          | `togglealerts`                  |
| `togglesound`     | `sound`, `togglesounds`         |
| `show`            | `view`, `preview`               |
| `toggletitle`     | `title`, `toggletitles`         |
| `toggleactionbar` | `actionbar`, `toggleactionbars` |

For example, `/announce preview discord` is equivalent to `/announcement show discord`.
