# 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="<https://931426099-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5DC56OEL1k7OH4aPJLxB%2Fuploads%2FA5eZdkocWN7WV7bW6xKa%2Fmotd.yml?alt=media&token=5a40480c-568d-4550-b8f5-0ada6043c445>" %}

## Command

### Syntax

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