> For the complete documentation index, see [llms.txt](https://ersha.gitbook.io/attributeplus/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ersha.gitbook.io/attributeplus/ji-chu-jiao-cheng/jia-dian-gong-neng.md).

# 加点功能

## 加点配置分布

| 文件夹/配置             | 描述          |
| ------------------ | ----------- |
| setting/attach.txt | 加点GUI界面布局配置 |
| attr/point/XXX.yml | 加点项配置       |

## 加点项配置内容

```yaml
#加点GUI界面内显示名
name: "&6力量"
#加点消耗多少属性点
point: 1
#最高加点等级
max: 60
#加点GUI局部设置
local:
  #显示位置 (位置不能相同)
  size: 12
  id: 399
  ids: 0
  lore:
    - "&7加点需消耗 &c%num% &7属性点"
    - "&7目前加点等级: &c%level%"
    - " "
    - "&6目前属性加成"
    - "%attribute%"
    - " "
    - "&e你还有 %point% 属性点未使用"
    - "       &a点击加点"
#格式及计算说明
#格式: 加点要求 属性标签 属性值
#计算: 属性值*(当前加点等级/加点要求)
attribute:
  - "1 物理伤害 2"
  - "3 暴击伤害 3"
  - "5 暴击几率 1.5"
#规则属性标签
attrLabel:
  #武器加上 "力量要求: 100" 玩家如果不满足则无法使用那件装备
  key: "力量要求"
  #变量为 %ap_power%
  placeholder: "power"
```

## 我该怎么新增一种加点项呢?

> 很简单,你只需要在 **attr/point** 文件夹内新建一个 **加点项配置.yml** 的配置文件,配置内容与上方示例配置相同,配置好保存后再服务器内输入 **/ap reload** 指令重载配置

## 我该怎么给玩家直接增加属性点呢?

> 可以使用插件自带指令\
> **/ab give <玩家> <数量>** — 给予玩家属性点\
> **/ab take <玩家> <数量>** — 扣除玩家属性点\
> \
> **/ab open** — 打开加点界面
