# Party

## Party

### config.yml

### Prefix

The prefix is used by default for each 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 replaced by the system with the prefix entered in `config.yml`.

```yaml
prefix: "&7[&5PARTY&7]&r"
```

### switchServerMessage

If this setting is set to `true`, the message that the party has changed the server will be displayed when the server is changed.

```yaml
switchServerMessage: true
```

### Whitelist

If you are using CloudNet v3, the 1st step is to enable the CloudNet v3 module under modules in `config.yml`.

Then enter the task name here.

If CloudNet v3 is not enabled, you enter the individual names of the servers as they are entered in the config of the BungeeCord server.

```yaml
# if cloudnet v3 in modules-section enabled, please enter the tasks where
# the party members do not connect with the party leader
whitelist:
  - "BedWars4x1"
  - "BedWars4x2"
  - "BedWars4x4"
  - "MLGRush"
  - "GunGame"
```

### defaultMembers

Here you enter the default size of the party's each player may have.

{% hint style="warning" %}
The minimum number of the party has to be 2!
{% endhint %}

```yaml
# the value of default Members has a minimum of 2. By another unsupported value a
# error message will send with "Info defaultMembers error"
defaultMembers: 8
```

{% hint style="info" %}
With a value of `-1`, there is no limit to the maximum number of players in a party.
{% endhint %}

### maxMembers

Here you can define how many players can be in a party using bungeecord permissions.

The structure is as follows: `permission;number of players`

```yaml
maxMembers:
  - "bungeesystem.party.members.16;16"
  - "bungeesystem.party.members.32;32"
  - "bungeesystem.party.members.unlimited;-1"
```

### Aliases

You can also define so-called aliases that you can enter instead of /party. For this you simply add further points under the point `aliases`.

```yaml
aliases:
  - "p"
```

### Default Configuration

```yaml
party:
  prefix: "&7[&5PARTY&7]&r"
  switchServerMessage: true
  # if cloudnet v3 in modules-section enabled, please enter the tasks where the party members do not connect with the party leader
  whitelist:
    - "BedWars4x1"
    - "BedWars4x2"
    - "BedWars4x4"
    - "MLGRush"
    - "GunGame"
  # the value of default Members has a minimum of 2. By another unsupported value a error message will send with "Info defaultMembers error"
  defaultMembers: 8
  maxMembers:
    - "bungeesystem.party.members.16;16"
    - "bungeesystem.party.members.32;32"
    - "bungeesystem.party.members.unlimited;-1"
  aliases:
    - "p"
```

### Commands

#### Syntax

| Command                 | Explanation                      |
| ----------------------- | -------------------------------- |
| /party help             | Displays the help page           |
| /party list             | Shows all players in the party   |
| /party leave            | Leave a party                    |
| /party toggleinvites    | Enable/Disable party invitations |
| /party accept \<player> | Accept a party invitation        |
| /party deny \<player>   | Deny a party invitation          |
| /party kick \<player>   | Exclude a player from your party |
| /party invite \<player> | Invite a player to your party    |

## Partychat

Party chat is for sending messages to the party. Players can see these when they are in the party.

### config.yml

### Prefix

The prefix is used by default for each 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 replaced by the system with the prefix entered in `config.yml`.

```yaml
prefix: "&7[&5PartyChat&7]&r"
```

### Aliases

You can also define so-called aliases that you can enter instead of /partychat. For this you simply add further points under the point `aliases`.

```yaml
aliases:
  - "pc"
```

### Default configuration

```yaml
partychat:
  prefix: "&7[&5PartyChat&7]&r"
  aliases:
    - "pc"
```

### Command

#### Syntax

```
/partychat <message>
```
