Skip to content

trmenu适配foxpay自助充值菜单示例

yaml
Title: "&bFoxPay自助充值配置"
Binding:
  command: 'cd'
Icons:
  '#':
    display:
      material: light blue stained glass pane
      name: "&bFoxPay自助充值"
      lore:
        - "&7不要看人家啦 人家害羞"
  'w':
    display:
      material: emerald
      name: "&a微信支付"
      lore:
        - "&7点击后在聊天栏发送需要充值的金额"
    actions:
      - 'close'
      - catcher:
          wx:
            type: CHAT
            start: 
            - 'tell: &7[&bFoxPay&7]>>>&a请输入充值金额'
            - 'actionbar: &a请输入充值金额'
            cancel: 'tell: &7[&bFoxPay&7]>>>&a已取消'
            end:
            - condition: 'check meta get *input >= 0.1'
              deny:
                - 'tell: &7[&bFoxPay&7]>>>&a金额过小'
                - 'return'
              actions:
                - 'player: fp pay {meta:input} wxpay'    
  'z':
    display:
      material: diamond
      name: "&b支付宝支付"
      lore:
        - "&7点击后在聊天栏发送需要充值的金额"
    actions:
      - 'close'
      - catcher:
          zfb:
            type: CHAT
            start: 
            - 'tell: &7[&bFoxPay&7]>>>&a请输入充值金额'
            - 'actionbar: &a请输入充值金额'
            cancel: 'tell: &7[&bFoxPay&7]>>>&a已取消'
            end:
            - condition: 'check meta get *input >= 0.1'
              deny:
                - 'tell: &7[&bFoxPay&7]>>>&a金额过小'
                - 'return'
              actions:
                - 'player: fp pay {meta:input} alipay'           
Layout:
- '#########'
- '#       #'
- '#  w z  #'
- '#       #'
- '#       #'
- '#########'
最近更新