# Clan Alliances and Rivalries

An alliance is a great opportunity to solidify your friendly intentions. It allows you to communicate in [ally chat](https://wiki.roinujnosde.me/simpleclans/how-to-setup/configuration#ally-chat) and also prevents friendly fire (can be configured).\
\
Rivalry, on the other hand, draws a line between you. Defeating a rival can increase your KDR (see [settings](https://wiki.roinujnosde.me/simpleclans/how-to-setup/configuration#kill-weights)). As a last resort, you can always declare [war](https://wiki.roinujnosde.me/simpleclans/how-to-setup/configuration#war-and-protection) to finally clarify your relationship!\
\
:warning: Forming an alliance or ending a rivalry **requires confirmation** from the requested clan.

## Commands

| Commands                            | Description                        |
| ----------------------------------- | ---------------------------------- |
| `/clan ally add [tag]`              | Send a request to form an alliance |
| `/clan ally remove [tag]`           | End an alliance                    |
| `/ally [join/leave/mute] (message)` | Send a message to an alliance      |
| `/clan rival add [tag]`             | Start a rivalry                    |
| `/clan rival remove [tag]`          | End a rivalry                      |
| `/clan alliances`                   | List all clans and their allies    |
| `/clan rivalries`                   | List all clans and their rivals    |

## Permissions

| Permission                     | Description                          |
| ------------------------------ | ------------------------------------ |
| `simpleclans.member.ally`      | Can use ally chat                    |
| `simpleclans.leader.ally`      | Can form alliances with other clans  |
| `simpleclans.leader.rival`     | Can start a rivalry with other clans |
| `simpleclans.anyone.alliances` | Can view alliances of clans          |
| `simpleclans.anyone.rivalries` | Can view rivalries of clans          |
