[MD]
## v2.2.0 — 2026-07-16
### 新增
1. **同 IP 拜师限制**
- 配置:`settings.same-ip-restrict.enabled`(默认 `true`)
- 绕过权限:`warzshitu.bypass.sameip`(可配置 `bypass-permission`)
- 申请拜师与收徒确认时都会校验
- 无法获取 IP 时放行,避免代理环境误伤
- 消息:`messages.same-ip-blocked`、`messages.same-ip-blocked-master`
2. **名师商店限购**
- 商品可配置:
```yaml
limit:
amount: 2
period: weekly # daily / weekly / monthly / lifetime
```
- `amount: 0` 或不写 `limit` = 不限购
- 进度写入玩家数据 `shop-purchases`
- 消息:`messages.mentor-shop-limit-reached`
- GUI lore 支持:`%limit%`、`%bought%`、`%remaining%`、`%period%`
3. **每个徒弟互动名师点上限(可开关)**
- 配置:
```yaml
mentor-points:
gain:
intimacy:
per-apprentice-limit:
enabled: true
points: 100
notify: true
```
- 与每日上限同时生效,取更严格剩余
- 新徒弟独立重新计数
- 出师/解除关系不清空历史累计,防反复拜师刷点
- 消息:`messages.mentor-points-apprentice-limit`
### PlaceholderAPI
- `%warzshitu_per_apprentice_limit_enabled%`
- `%warzshitu_per_apprentice_limit%`
- `%warzshitu_apprentice_intimacy_points_<徒弟名>%`
- `%warzshitu_shop_bought_<商品ID>%`
- `%warzshitu_shop_limit_<商品ID>%`
- `%warzshitu_shop_remaining_<商品ID>%`
### 其他
- `config-version` → `5`
- 产物:`WarZShiTu-2.2.0.jar`
### 升级提示(2.1.x → 2.2.0)
1. 替换 jar 并重启服务器(`plugin.yml` 新增权限节点)。
2. 建议合并配置:
- `settings.same-ip-restrict`
- `mentor-points.gain.intimacy.per-apprentice-limit`
- 商店商品 `limit` 段
- 消息键:`same-ip-blocked`、`same-ip-blocked-master`、`mentor-points-apprentice-limit`、`mentor-shop-limit-reached`
3. 未合并时使用代码默认值(同 IP 限制开、每徒弟上限 100、示例商品自带限购)。
---
[/MD]