老哥们问下,现在的trmenu版本3.1.17,如何设置购买VIP?每次换新版本老版本菜单就失效了。
复制代码插件用的是:Trmenu版本3.1.17 VipSystem LuckPerms
麻烦各位老哥们教下
- actions:
- all:
- - condition: 'all [ check papi *%playerpoints_points% >= *3500 ] '
- actions:
- - 'console: points take %player_name% 300'
- - 'console: addvip %player_name% svip 31'
- - 'tell: &2► 基础 | &7成功花费 &a3500点券 &7购买了 &a樱之城付费会员 &f- &6&lSVIP.'
- deny-actions:
- - 'tell: &c► 错误 | &7你没有足够的点券来购买.'
麻烦各位老哥们教下
本帖最后由 夜雨晨风丶 于 2023-2-28 18:35 编辑
主要是缩进问题
只有一个判断可以不用all。并且可以直接用kether的动作判断点券数量
复制代码
主要是缩进问题
只有一个判断可以不用all。并且可以直接用kether的动作判断点券数量
- actions:
- all:
- - condition: 'points *3500'
- actions:
- - 'console: points take %player_name% 300'
- - 'console: addvip %player_name% svip 31'
- - 'tell: &2► 基础 | &7成功花费 &a3500点券 &7购买了 &a樱之城付费会员 &f- &6&lSVIP.'
- deny:
- - 'tell: &c► 错误 | &7你没有足够的点券来购买.'
缩进问题
actions:
all:
- condition: 'all [ check papi *%playerpoints_points% >= *3500 ] '
actions:
- 'console: points take %player_name% 300'
- 'console: addvip %player_name% svip 31'
- 'tell: &2► 基础 | &7成功花费 &a3500点券 &7购买了 &a樱之城付费会员 &f- &6&lSVIP.'
deny:
- 'tell: &c► 错误 | &7你没有足够的点券来购买.'
actions:
all:
- condition: 'all [ check papi *%playerpoints_points% >= *3500 ] '
actions:
- 'console: points take %player_name% 300'
- 'console: addvip %player_name% svip 31'
- 'tell: &2► 基础 | &7成功花费 &a3500点券 &7购买了 &a樱之城付费会员 &f- &6&lSVIP.'
deny:
- 'tell: &c► 错误 | &7你没有足够的点券来购买.'
夜雨晨风丶 发表于 2023-2-28 18:16
主要是缩进问题
只有一个判断可以不用all。并且可以直接用kether的动作判断点券数量
老哥点卷是扣除了,但是貌似没有移动组
夜雨晨风丶 发表于 2023-2-28 18:16
主要是缩进问题
只有一个判断可以不用all。并且可以直接用kether的动作判断点券数量
购买后而且会报错直接退出
- [19:02:09 INFO]: [PlayerPoints] Took 1,000 Points from Meng_banci.
- [19:02:12 INFO]: EF: Meng_banci (0ms) failed Packets (100 vls)
- [19:02:12 INFO]: EF: Meng_banci (0ms) failed Packets (100 vls)
- [19:02:13 INFO]: Meng_banci lost connection: Disconnected
- [19:02:13 INFO]: Meng_banci left the game