# Onlineteam

## config.yml

### Prefix

The prefix is used by default with every message. It can be set in the message files at the beginning of each message. To set it, simply write `%prefix%` (placeholder). This will then be exchanged by the system with the prefix entered in `config.yml`.

```yaml
prefix: "&bTeamonline &7|&r"
```

### countOfTeamGroups

Here you specify how many team groups you have on your network.

Here is an example of the groups: Owner, Admin, Developer, Builder, Moderator, Supporter, etc.

```yaml
countOfTeamGroups: 6
```

### teamGroups

In the configuration teamGroups you define the name + prefix of the group, as well as the permission the player must have to be displayed when executing the command.

{% hint style="warning" %}
The important thing is that, as shown below, you start with the number 1 and end with the number you specified in the `coutOfTeamGroups` option.
{% endhint %}

```yaml
teamGroups:
  1:
    name: "&4Owner"
    permission: "bungeesystem.onlineteam.owner"
  2:
    name: "&cAdmin"
    permission: "bungeesystem.onlineteam.admin"
  3:
    name: "&1Moderator"
    permission: "bungeesystem.onlineteam.moderator"
  4:
    name: "&9Supporter"
    permission: "bungeesystem.onlineteam.supporter"
  5:
    name: "&bDeveloper"
    permission: "bungeesystem.onlineteam.developer"
  6:
    name: "&2Builder"
    permission: "bungeesystem.onlineteam.builder"
```

### Aliases

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

```yaml
aliases:
  - "ao"
  - "adminonline"
```

### Default configuration

```yaml
onlineteam:
  prefix: "&bTeamonline &7|&r"
  countOfTeamGroups: 6
  teamGroups:
    1:
      name: "&4Owner"
      permission: "bungeesystem.onlineteam.owner"
    2:
      name: "&cAdmin"
      permission: "bungeesystem.onlineteam.admin"
    3:
      name: "&1Moderator"
      permission: "bungeesystem.onlineteam.moderator"
    4:
      name: "&9Supporter"
      permission: "bungeesystem.onlineteam.supporter"
    5:
      name: "&bDeveloper"
      permission: "bungeesystem.onlineteam.developer"
    6:
      name: "&2Builder"
      permission: "bungeesystem.onlineteam.builder"
  aliases:
    - "ao"
    - "adminonline"
```

## Command

### Syntax

```
/onlineteam
```
