如题,金币的我是这样写的,点券的不会
actions:
RIGHT:
- condition: 'js: utils.hasMoney(player, 10000.0)'
actions:
- 'close'
- 'take-money: 10000.0'
- 'sound: BLOCK_NOTE_BLOCK_BIT-1-0'
- 'console: lp user %player_name% permission set shop.test true'
- 'title: &c购买成功~ &f请前往购买的地方查看~ 20 80 10'
deny:
- 'close'
- 'Title: `&c您的金币不足!`'

actions:
RIGHT:
- condition: 'js: utils.hasMoney(player, 10000.0)'
actions:
- 'close'
- 'take-money: 10000.0'
- 'sound: BLOCK_NOTE_BLOCK_BIT-1-0'
- 'console: lp user %player_name% permission set shop.test true'
- 'title: &c购买成功~ &f请前往购买的地方查看~ 20 80 10'
deny:
- 'close'
- 'Title: `&c您的金币不足!`'
本帖最后由 Thehrz 于 2021-9-21 15:58 编辑

用hasPoints 然后扣除部分用命令
复制代码

用hasPoints 然后扣除部分用命令
- actions:
- RIGHT:
- - condition: 'js: utils.hasPoints(player, 10000.0)'
- actions:
- - 'close'
- - 'console: points take %player_name% 10000.0'
- - 'sound: BLOCK_NOTE_BLOCK_BIT-1-0'
- - 'console: lp user %player_name% permission set shop.test true'
- - 'title: &c购买成功~ &f请前往购买的地方查看~ 20 80 10'
- deny:
- - 'close'
- - 'Title: `&c您的点券不足!`'
Thehrz 发表于 2021-9-21 15:54
用hasPoints 然后扣除部分用命令
我尝试了 但是什么都没有发生,后台也没有报错
Thehrz 发表于 2021-9-21 15:54
用hasPoints 然后扣除部分用命令
刚才搞错了,现在好了 谢谢