水月教父
老哥们问下,现在的trmenu版本3.1.17,如何设置购买VIP?每次换新版本老版本菜单就失效了。
  1.     actions:
  2.       all:
  3.       - condition: 'all [ check papi *%playerpoints_points% >= *3500 ] '
  4.       actions:
  5.         - 'console: points take %player_name% 300'
  6.         - 'console: addvip %player_name% svip 31'
  7.         - 'tell: &2► 基础 | &7成功花费 &a3500点券 &7购买了 &a樱之城付费会员 &f- &6&lSVIP.'
  8.       deny-actions:
  9.       - 'tell: &c► 错误 | &7你没有足够的点券来购买.'
复制代码
插件用的是:Trmenu版本3.1.17   VipSystem   LuckPerms

麻烦各位老哥们教下

夜雨晨风丶
本帖最后由 夜雨晨风丶 于 2023-2-28 18:35 编辑

主要是缩进问题
只有一个判断可以不用all。并且可以直接用kether的动作判断点券数量
  1.     actions:
  2.       all:
  3.       - condition: 'points *3500'
  4.         actions:
  5.         - 'console: points take %player_name% 300'
  6.         - 'console: addvip %player_name% svip 31'
  7.         - 'tell: &2► 基础 | &7成功花费 &a3500点券 &7购买了 &a樱之城付费会员 &f- &6&lSVIP.'
  8.         deny:
  9.         - 'tell: &c► 错误 | &7你没有足够的点券来购买.'
复制代码



ZeroExact
缩进问题

    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的动作判断点券数量

购买后而且会报错直接退出
  1. [19:02:09 INFO]: [PlayerPoints] Took 1,000 Points from Meng_banci.
  2. [19:02:12 INFO]: EF: Meng_banci (0ms) failed Packets (100 vls)
  3. [19:02:12 INFO]: EF: Meng_banci (0ms) failed Packets (100 vls)
  4. [19:02:13 INFO]: Meng_banci lost connection: Disconnected
  5. [19:02:13 INFO]: Meng_banci left the game
复制代码

下一页 最后一页