更新于:

4.5 季节性价格

  • 在该示例中,该商品的一年四季的价格是不相同的。
  • 原理非常简单,我们为该商品设置四个价格,并为每个价格设置了对应季节条件。
  • %rs_season% 是 RealisticReason 插件的变量符,会根据配置文件显示对应季节的显示名称。
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
items:
A:
price-mode: CLASSIC_ALL
product-mode: CLASSIC_ALL
products:
1:
material: potato
amount: 1
buy-prices:
1:
economy-plugin: Vault
amount: 2
placeholder: '&6{amount} 金币'
conditions:
- 'placeholder: %rs_season%;;==;;Spring'
2:
economy-plugin: Vault
amount: 1.8
placeholder: '&6{amount} 金币'
conditions:
- 'placeholder: %rs_season%;;==;;Summber'
3:
economy-plugin: Vault
amount: 3.2
placeholder: '&6{amount} 金币'
conditions:
- 'placeholder: %rs_season%;;==;;Fall'
4:
economy-plugin: Vault
amount: 8.8
placeholder: '&6{amount} 金币'
conditions:
- 'placeholder: %rs_season%;;==;;Winter'