# motd

## config.yml

### permission

Is required to be able to join the server when it is in maintenance.

```yaml
permission: "bungeesystem.maintenance.use"
```

### Aliases

You can also define so-called aliases that you can enter instead of /maintenance. To do this, simply add further points under the `aliases` item.

```yaml
aliases:
  - "wartung"
```

## motd.yml

### maxPlayers

Set the maximum number of players allowed to join the server here.

```yaml
maxPlayers: 100
```

### whitelist

Add player names here that are still allowed on the server during maintenance work.\
Here is an example:

```yaml
whitelist:
  - "Spieler1"
  - "Spieler2"
  - "Spieler3"
```

```yaml
whitelist: []
```

### maintenance

#### enabled

If this value is set to `true`, the BungeeCord server goes into maintenance mode.

```yaml
enabled: false
```

#### motds

Set the motd of the server when it is undergoing maintenance.

```yaml
motds:
  firstLine: "&b&o■ &8┃ &b&lBungeeSystem &8&l» &7&ov1.1.0 &8┃ &b&o■"
  secondLine: "                  &4&lMaintenance"
  protocolText: "&8➜ &c&lMaintenance &8┃ &c✘"
```

### motd

Set the motd of the server when it is not undergoing maintenance.

```yaml
motds:
  firstLine: "&b&o■ &8┃ &b&lBungeeSystem &8&l» &7&ov1.1.0 &8┃ &b&o■"
  secondLine: "      &7Created by &8● &4&lHerrTechniker"
```

### Default configuration

#### config.yml

```yaml
motd:
  maintenance:
    permission: "bungeesystem.maintenance.use"
    aliases:
      - "wartung"
```

#### motd.yml

```yaml
maxPlayers: 100
whitelist: []
maintenance:
  enabled: false
  motds:
    firstLine: "&b&o■ &8┃ &b&lBungeeSystem &8&l» &7&ov1.1.0 &8┃ &b&o■"
    secondLine: "                  &4&lMaintenance"
    protocolText: "&8➜ &c&lMaintenance &8┃ &c✘"
motds:
  firstLine: "&b&o■ &8┃ &b&lBungeeSystem &8&l» &7&ov1.1.0 &8┃ &b&o■"
  secondLine: "      &7Created by &8● &4&lHerrTechniker"
```

{% file src="/files/FqZ9WWfHsdYt7Iz3BUYu" %}

## Command

### Syntax

```
/maintenance <on/off>
```


---

# 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://wiki-en.herrtechniker.eu/bungeesystem/module/motd.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.
