> For the complete documentation index, see [llms.txt](https://gyzer.gitbook.io/legendaryguild/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://gyzer.gitbook.io/legendaryguild/cha-jian-pei-zhi/config.yml/xin-jian-yi-ge-chuang-jian-gong-hui-zu.md).

# 新建一个创建公会组

**公会创建组** 可根据 **玩家权限** 使拥有不同权限的玩家创建公会时的 **花费不同**.

{% hint style="info" %}
创建公会组有以下节点组成

* weight(权重)：该数字越小则越先检测. 比如 **vip** 的权重为 *2 .* 那么 **svip** 的权重要 **<2**
* permission(判断权限)：不需要解释....
* requirements(花费、条件)： 具体写法查看 **Requirements**
  {% endhint %}

## 示例

1. 创建一个组 **小丑**&#x20;
2. 该组创建公会需要 **10000** 游戏币 并且有 **80%** 的概率创建失败
3. 该组最先检测

```
settings
  create:
    max-length: 6
    cooldown: 240
    default:
      requirements:
       - 'vault;5000'
       - 'playerpoints;100'
    groups:
      普通会员组:
        #Weight. The smaller the value, the first to be detected and cannot be repeated
        weight: 3
        permission: 'legendaryguild.vip'
        requirements:
          - 'vault;4000'
          - 'playerpoints;80'
      高级会员组:
        weight: 2
        permission: 'legendaryguild.svip'
        requirements:
          - 'vault;3000'
          - 'playerpoints;50'
      超级会员组:
        weight: 1
        permission: 'legendaryguild.mvp'
        requirements:
          - 'vault;2000'
          - 'playerpoints;20'
      小丑:
        weight: 0
        permission: 'legendaryguild.joker'
        requirements:
          #花费 10000 Vault游戏币
          - 'vault;10000'
          # 20% 的概率通过
          - 'chance;0.2'
```
