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

# Operators and permissions

This page explains who may do what on your server: operators, groups and permission nodes. You need it as soon as you want someone other than yourself to hold commands.

Every action that needs a right is checked against a permission node. The console holds all permissions.

## Nodes

| Node                                 | Default                                                                 | Used by                          |
| ------------------------------------ | ----------------------------------------------------------------------- | -------------------------------- |
| `server.command.<name>`              | operators only, except `help`, `version`, `list` and `spawn` (everyone) | The native commands.             |
| `aethercube.command.gamemode`        | operators                                                               | `/gamemode <mode>` for yourself. |
| `aethercube.command.gamemode.others` | operators                                                               | `/gamemode <mode> <player>`.     |
| `player.chat`                        | everyone                                                                | Sending chat messages.           |
| Plugin nodes                         | As declared in the plugin's `plugin.yml`                                | Plugin commands and features.    |

A node that nobody registered defaults to operators only.

## Resolution order

For a player and a node, the server decides in this order:

1. The player's own entries (`users`). An explicit `true` or `false` wins.
2. The groups of the player, from the highest priority to the lowest. The first group that says something decides. Within one priority, a refusal wins. A group also inherits from its parents.
3. The default of the node.

Every player belongs to the `default` group, which always exists.

Within one set of entries, the most specific one applies: the exact node, then the longest wildcard such as `server.command.*`, then `*`. Nodes are compared in lower case.

## Operators

An operator is a player who holds the operator flag. Operators get every node whose default is "operators only".

| How                                                        | Notes                                                                                                                                          |
| ---------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------- |
| `permissions op <player>` in the console or by an operator | The player must be online.                                                                                                                     |
| `permissions.operators` in `server.yml`                    | Offline names. They become operators at every start. The list only adds operators. It does not remove anyone and it is ignored in online mode. |
| `permissions deop <player>`                                | Removes the flag.                                                                                                                              |

## `permissions.json`

The file lives in `storage.data_directory`. The server writes it. You can edit it while the server is stopped.

```json
{
  "format_version": 1,
  "operators": [],
  "groups": {},
  "users": {}
}
```

| Field            | Meaning                                                                                                                          |
| ---------------- | -------------------------------------------------------------------------------------------------------------------------------- |
| `format_version` | Always `1`.                                                                                                                      |
| `operators`      | The operators.                                                                                                                   |
| `groups`         | Group id to `name`, `priority`, `permissions` (node to `true` or `false`), `inherits` (parent group ids), `prefix` and `suffix`. |
| `users`          | Player id to its own `permissions` and its `groups`.                                                                             |

I would use the `permissions` command rather than edit the file by hand: it validates what you type and saves for you.

## The `permissions` command

Alias `perm`. Needs `server.command.permissions`. Every `<player>` argument names a player who is online.

| Command                                              | Effect                                                                    |
| ---------------------------------------------------- | ------------------------------------------------------------------------- |
| `permissions op <player>`                            | Make an online player an operator.                                        |
| `permissions deop <player>`                          | Remove the flag.                                                          |
| `permissions check <player> <node>`                  | Show whether the player holds the node.                                   |
| `permissions user <player> set <node> [true\|false]` | Give or refuse a node to one player.                                      |
| `permissions user <player> unset <node>`             | Remove that entry.                                                        |
| `permissions user <player> group add <group>`        | Put the player in a group.                                                |
| `permissions user <player> group remove <group>`     | Take the player out.                                                      |
| `permissions group create <id> [priority]`           | Create a group. The priority is an integer from -1000 to 1000, default 0. |
| `permissions group delete <id>`                      | Delete a group.                                                           |
| `permissions group set <id> <node> [true\|false]`    | Give or refuse a node to a group.                                         |
| `permissions group unset <id> <node>`                | Remove that entry.                                                        |
| `permissions group inherit <id> <parent>`            | Make a group inherit another.                                             |
| `permissions group uninherit <id> <parent>`          | Stop inheriting.                                                          |
| `permissions groups`                                 | List the groups.                                                          |

Example: let the `builders` group use `/tp`.

```
permissions group create builders 10
permissions group set builders server.command.tp true
permissions user Alice group add builders
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.aethercube.fr/developers/running-a-server/operators-and-permissions.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
