更新于:

1.5 展示物品

每个商品如果想要在菜单内显示,就必须设置展示物品。同时普通菜单内各个按钮也会使用展示物品。正常情况下,展示物品使用 display-item 选项表示,并且接物品语句即可。但是,你也可以按此格式设置多个展示物品,插件会根据展示物品的排序,依次匹配条件,最终选择第一个满足条件的展示物品展示到菜单中。

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
buttons:
C:
display-item:
# 条件 ID
3:
material: GREEN_WOOL
amount: 12
name: ‘&e第 12 天’
lore:
- ‘&f今日奖励:’
- ‘&7 - 5000 金币’
- ‘’
- ‘&#FFFACD点击领取’
# 条件 ID
2:
material: RED_WOOL
amount: 12
name: ‘&e第 12 天’
lore:
- ‘&f包括奖励:’
- ‘&7 - 5000 金币’
- ‘’
- ‘&#ff3300正在冷却’
- ‘&#ff3300领取时间: %ultimateshop_streak_A_{buy-cooldown-player}%’
# 条件 ID
1:
material: RED_WOOL
amount: 12
name: ‘&e第 12 天’
lore:
- ‘&f包括奖励:’
- ‘&7 - 5000 金币’
- ‘’
- ‘&#ff3300已经领取’
# 条件 ID
0:
material: RED_WOOL
amount: 12
name: ‘&eDay 12
lore:
- ‘&f包括奖励:’
- ‘&7 - 5000 金币’
- ‘’
- ‘&#ff3300请先领取第 11 天的奖励.’
display-item-conditions:
0:
# 阅读“条件”章节获取更多信息
- ‘placeholder: %ultimateshop_streak_A_{buy-times-player}%;;<;;11'
1:
- 'placeholder: %ultimateshop_streak_A_{buy-times-player}%;;>;;11’
2:
- ‘placeholder: %ultimateshop_streak_A_{buy-times-player}%;;=;;11’
- ‘placeholder: %ultimateshop_streak_A_{buy-cooldown-player}%;;!=;;Now’
3:
- ‘placeholder: %ultimateshop_streak_A_{buy-times-player}%;;=;;11’