更新于:

4.8 每日随机商店

  • 您可以使用条件配合随机变量符实现每日随机刷新的商品。在该示例中,此商品每日 0 点刷新,可能刷出的商品分别是苹果、红色羊毛和小麦。
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
items:
A:
price-mode: CLASSIC_ANY
product-mode: CLASSIC_ANY
display-item:
# Condition ID
1:
material: APPLE
amount: 12
name: '&e苹果'
lore:
- '&f今日商品:'
- '&7 - 苹果'
- '{random_rotate}'
# Condition ID
2:
material: RED_WOOL
amount: 12
name: '&e红色羊毛'
lore:
- '&f今日商品:'
- '&7 - 红色羊毛'
- ''
# Condition ID
3:
material: WHEAT
amount: 12
name: '&e小麦'
lore:
- '&f今日商品:'
- '&7 - 小麦'
- ''
display-item-conditions:
1:
# Check conditions page for more info
- 'placeholder: {random_rotate};;==;;A'
2:
- 'placeholder: {random_rotate};;==;;B'
3:
- 'placeholder: {random_rotate};;==;;C'
products:
1:
material: APPLE
amount: 1
conditions:
- 'placeholder: {random_rotate};;==;;A'
2:
material: RED_WOOL
amount: 1
conditions:
- 'placeholder: {random_rotate};;==;;B'
3:
material: WHEAT
amount: 1
conditions:
- 'placeholder: {random_rotate};;==;;C'
buy-prices:
1:
economy-plugin: Vault
amount: 2
placeholder: '&6{amount} 金币'
start-apply: 0
sell-prices:
1:
economy-plugin: Vault
amount: 1
placeholder: '&6{amount} 金币'
start-apply: 0
sell-limits:
global: 640
default: 128
vip: 192
sell-limits-conditions:
vip:
- 'permission: group.vip'
sell-limits-reset-mode: 'TIMED'
sell-limits-reset-time: '00:00:00'