1
mirror of https://github.com/CarmJos/UserPrefix.git synced 2026-06-04 15:28:21 +08:00

chore(item): 更换物品的配置逻辑,支持跨版本的物品读取、保存。

BREAKING-CHANGE: 旧的配置文件需要进行变更。
This commit is contained in:
2023-10-12 20:09:24 +08:00
parent 7d62f68662
commit 12489fe1a8
5 changed files with 14 additions and 11 deletions
@@ -35,7 +35,7 @@ item:
# 有权限时显示的物品 [必须]
# 当用户有权限且未选中时,会显示该物品
has-perm:
type: DIAMOND
material: DIAMOND
name: "&b&lPro &b会员前缀"
lore:
- "&7Pro会员专属称号"
@@ -48,7 +48,7 @@ item:
# 正在使用时显示的物品 [非必需]
# 当用户正在使用时会显示这个物品,不配置即自动加载“itemHasPermission”
using:
type: DIAMOND
material: DIAMOND
name: "&b&lPro &b会员前缀"
flags:
- HIDE_ENCHANTS # 隐藏附魔显示
@@ -65,7 +65,7 @@ item:
# 没有权限时显示的物品 [非必需]
# 如果没有权限就会显示这个item。如果不配置该物品,则玩家没有使用权限时不会显示在GUI里面。
no-perm:
type: INK_SACK
material: INK_SACK
data: 8
name: "&b&lPro+ &b会员前缀 &c(未拥有)"
lore: