向阳的一生
7/5/2021, 9:44:53 AM
Neige 发表于 2021-7-5 17:33
- 'js:
if (parseInt(vars("%vault_eco_balance%")) < 1000) {
p ...
这个只会判定金币小于一千发送这条消息 仍然会输出他下面的语句
我的那个V2版本的配置判定小于1000发送消息且不会输出下面的语句
Neige
7/5/2021, 9:49:39 AM
向阳的一生 发表于 2021-7-5 17:44
这个只会判定金币小于一千发送这条消息 仍然会输出他下面的语句
我的那个V2版本的配置判定小于1000发送消 ...
等我吃完饭,回去给你写
Neige
7/5/2021, 10:14:01 AM
本帖最后由 Neige 于 2021-7-5 18:16 编辑
actions:
all:
- condition: 'js: parseInt(vars("%vault_eco_balance%")) >= 1000'
actions:
- 'take-money: 1000'
- 'tell: 你钱没了'
deny:
- 'tell: &c[系统]&a该物品需要&c1000&a金币,你的余额不足'
actions:
all:
- condition: 'js: parseInt(vars("%vault_eco_balance%")) >= 1000'
actions:
- 'take-money: 1000'
- 'tell: 你钱没了'
deny:
- 'tell: &c[系统]&a该物品需要&c1000&a金币,你的余额不足'
AkkLive
7/5/2021, 9:31:03 AM
actions:
left:
- condition: 'money *1000'
actions:
- 'take-money: 1000'
- 'tell: 金币不足'
deny:
- 'tell: 需要金币1000'
left:
- condition: 'money *1000'
actions:
- 'take-money: 1000'
- 'tell: 金币不足'
deny:
- 'tell: 需要金币1000'