Jerry17
  'Q':
    display:
      material: 'head:e47b37e67a89159bf4acc4a44d4328f4efc0181605142288e5eed1ab8aed913c'
      name: '&e签到
      lore:
        - ''
    actions:
      all:
        - condition: perm *group.v1
        - condition: 'check papi *%playerpoints_points% >= *250'

          actions:
            - 'close'
            - 'sound: UI_TOAST_CHALLENGE_COMPLETE-1-10'
            - 'sound: UI_TOAST_CHALLENGE_COMPLETE-1-0<delay:4>'
            - 'console: points give %player_name% 250'
            - 'console: lp user %player_name% parent addtemp monthpointcard 30d'
            - 'title: &3&l购买成功,&f感谢支持!'
          deny:
            - 'title: &E您的权限不足,&C无法购买!'
            - 'close'

我想检测玩家如果拥有v1的权限点则可以购买,没有的话则deny


Jiale233
本帖最后由 Jiale233 于 2023-7-3 16:40 编辑
  1. all:
  2.   - condition: all [ perm *group.v1 check papi *%playerpoints_points% >= *250 ]
  3.     actions:
  4.     - 'close'
  5.     - 'sound: UI_TOAST_CHALLENGE_COMPLETE-1-10'
  6.     - 'sound: UI_TOAST_CHALLENGE_COMPLETE-1-0<delay:4>'
  7.     - 'console: points give %player_name% 250'
  8.     - 'console: lp user %player_name% parent addtemp monthpointcard 30d'
  9.     - 'title: &3&l购买成功,&f感谢支持!'
  10.     deny:
  11.     - 'title: &E您的权限不足,&C无法购买!'
  12.     - 'close'
复制代码

琳悦
  actions:
      - condition:  all [ perm *group.v1 check papi *%playerpoints_points% >= *250']
          actions:
            - 'close'
            - 'sound: UI_TOAST_CHALLENGE_COMPLETE-1-10'
            - 'sound: UI_TOAST_CHALLENGE_COMPLETE-1-0<delay:4>'
            - 'console: points give %player_name% 250'
            - 'console: lp user %player_name% parent addtemp monthpointcard 30d'
            - 'title: &3&l购买成功,&f感谢支持!'
          deny:
            - 'title: &E您的权限不足,&C无法购买!'
            - 'close'

多检测请使用 all [ 权限 权限 权限 ]

Jerry17

这个检测权限组的 没法单独用捏

Jiale233
Jerry17 发表于 2023-7-3 16:49
这个检测权限组的 没法单独用捏

什么没法单独用,请具体说明

TDT-金鱼
Jerry17 发表于 2023-7-3 16:49
这个检测权限组的 没法单独用捏

直接和你说,你那个 condition 写法是错的
要连缀条件就得用 all [ ] ,没有商量余地。

Jerry17
TDT-金鱼 发表于 2023-7-3 16:35
直接和你说,你那个 condition 写法是错的
要连缀条件就得用 all [ ] ,没有商量余地。

好 我就是要这个lp_啥的权限组