# /gm

## Usage

```
/gm <gamemode> [player]
```

{% hint style="info" %}
You can use the following arguments for each gamemode:\
\
**Survival:** `survival`, `s`, `0`\
**Creative:** `creative`, `c`, `1`\
**Adventure:** `adventure`, `a`, `2`\
**Spectator:** `spectator`, `sp`, `3`
{% endhint %}

## Permission

### Until v2.26.0

#### /gm \<gamemode>

```
buildsystem.gamemode
```

#### /gm \<gamemode> \<player>

```
buildsystem.gamemode.others
```

### From v2.27.0 onwards

#### /gm \<gamemode>

```
buildsystem.gamemode
```

{% hint style="info" %}
Each gamemode also has it's own permission which is granted by default when the player has the `buildsystem.gamemode` permission:

* **Survival**: `buildsystem.gamemode.survival`
* **Creative**: `buildsystem.gamemode.creative`
* **Adventure**: `buildsystem.gamemode.adventure`
* **Spectator**: `buildsystem.gamemode.spectator`
  {% endhint %}

#### /gm \<gamemode> \<player>

```
buildsystem.gamemode.other
```

{% hint style="info" %}
Each gamemode also has it's own permission which is granted by default when the player&#x20;

has the `buildsystem.gamemode.other` permission:

* **Survival**: `buildsystem.gamemode.survival.other`
* **Creative**: `buildsystem.gamemode.creative.other`
* **Adventure**: `buildsystem.gamemode.adventure.other`
* **Spectator**: `buildsystem.gamemode.spectator.other`
  {% endhint %}


---

# Agent Instructions: Querying This Documentation

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

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://buildsystem.eintosti.de/v2/commands/gm.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
