# 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          |


---

# 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.roinujnosde.me/simpleclans/commands-and-permissions/aliances-and-rivalries.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.
