# Work of clans

## ClanMember

Each clan member has a rank, here are all the ranks:

* <mark style="color:yellow;">Owner</mark>
* <mark style="color:blue;">Member</mark>
* <mark style="color:red;">Moderator</mark>
* <mark style="color:purple;">Helper</mark>

You can set permissions for a specific role in the main config

{% code title="config.yml" %}

```yaml
#Setting a minimum role to change something
pvpChangeRole: HELPER
kickChangeRole: MODERATOR
GiveInviteRole: MEMBER
SetHomeRole: MODERATOR
glowChangeRole: HELPER
takeMoneyFromBank: OWNER
changeWelcomeMessage: HELPER
sellItemInShop: MODERATOR
```

{% endcode %}

## ClanLevel

Each clan has its own level, which increases when completing quests. This level defines various restrictions such as:

* Maximum number of participants
* Maximum coffer size
* Maximum number of homers
* Maximum total chest size
* Permit to operate a store

{% hint style="info" %}
These restrictions are configured in the config
{% endhint %}

## Rating

The rating determines what place your clan occupies in the top

```
rating = membersRating + levelRating + homesRating + bankRating;
```

## Pvp

You can disable PvP between clanmates to prevent killings within your guild. This can be done both through the menu and using commands

## Coffer

This is a system that allows clan members to jointly manage financial resources. It serves as a repository for gold and other currencies that can be used to develop the clan. Each participant has the opportunity to both contribute funds to the treasury and withdraw money for the needs of the clan, such as improving infrastructure, purchasing resources or charity for less wealthy members\
The coffer also has a maximum size.

## Homes

Clan points allow players to move to clan bases (or anything else) with absolutely no restrictions

<figure><img src="https://1195001440-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0wu66pIJwiZp9i4Xm4hr%2Fuploads%2FXO3l60Fyg2nB5ylJvmvl%2Fhome.gif?alt=media&#x26;token=9034c8b9-c5bd-4646-9ea3-359d9362971d" alt=""><figcaption><p>Example</p></figcaption></figure>

## Chest

This is a functionality that allows clan members to jointly distribute resources and items. It serves as a repository for various materials that can be useful to all clan members. Each participant can both add and remove necessary items from the chest, which helps strengthen team spirit and cooperation

## Shop

This project introduces a unique intra-clan store system, completely independent of other plugins. Each clan can have its own store, which is managed by the head of the clan. The range of goods in the store depends on the clan level: the higher the level, the more valuable goods will be available. This creates an incentive for active participation in clan tasks. The success of a clan directly affects the capabilities of its store!

<figure><img src="https://1195001440-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0wu66pIJwiZp9i4Xm4hr%2Fuploads%2FZGT5SVyPLcLGGmWw9G05%2F2024-09-25_12.01.39.png?alt=media&#x26;token=cf98256f-b675-4723-afdb-4ec11845b3eb" alt=""><figcaption></figcaption></figure>

## Quests

A quest system you won't find anywhere else! Various types of tasks, upon completion of which the clan level increases, and certain bonuses are also given to the participants. This plugin has more than 17 types of quests, now we’ll look at each one

* ITEMS\_COLLECT - Even hand over (items)&#x20;
* BANK\_COLLECT - Put the nth amount into the treasury&#x20;
* KILLS\_COLLECT - Get kills with the total forces in the clan&#x20;
* MEMBERS\_COLLECT - Recruit a number of members in the clan&#x20;
* INDIVIDUAL\_KILLS - Each clan player must kill 300 players&#x20;
* KILL\_NETHERITE - Each clan player kill 10 players wearing netherite armor&#x20;
* KILL\_DIAMOND - Each clan player kill 15 players in diamond armor&#x20;
* DAMAGE\_PLAYERS - Each clan player must deal 5,000 damage to other players&#x20;
* KILL\_MOBS - Each clan player needs to kill endermen (30pcs), creepers (40pcs), ghasts (5pcs), ifrits (20pcs), zombies (50pcs)&#x20;
* TOTEMS\_COLLECT - Each clan player must demolish a totem (5 pieces)&#x20;
* INDIVIDUAL\_BANK - Each clan player must replenish the treasury by 2,000,000 coins
* EAT\_GOLDEN\_APPLES - Each clan player needs to eat 2 enchanted apples&#x20;
* VISIT\_DIMENSIONS - Each clan player needs to visit the hellish world and the ender world BREAK\_ELYTRA - Each clan player needs to break 1 pair of elytra&#x20;
* RUN\_DISTANCE - Each clan player must run 50,000 blocks&#x20;
* LEVEL\_UP - Each clan player must receive lvl 50-75 experience&#x20;
* KILL\_BY\_HAND -  Each clan player needs to kill a player wearing netherite armor with his hand
* BLOCK\_BREAK - Сollect a certain number of broken blocks

> All quests are configured in the main config

{% code title="config.yml" %}

```
  four:
    name: "&4Individual Kills"
    description:
      - "&eEach clan member must"
      - "&3- kill 300 players"
      - "&3- deal 1000 damage to other players"
    levelMark: 4 #at what clan level is the class available
    missions:
      - INDIVIDUAL_KILLS
      - DAMAGE_PLAYERS
```

{% endcode %}
