Lidocaine
本帖最后由 上杉夏相 于 2020-4-29 15:30 编辑

我想实现金币(点券):银币(eco)为1:1000的兑换
然后使用以下代码
left_click_commands:
    - '[console] p give %player_name% 1'
    - '[console] eco take %player_name% 1000'
    - '[sound] ENTITY_VILLAGER_YES'
    - '[message] &8[&e银行&8] &a充值 &e1*金币 &7| &a支出 &e1000银币'
    left_click_requirement:
      requirements:
        hasland:
          type: has money
          amount: 1000
        hasslot:
          type: '>='
          input: '%player_empty_slots%'
          output: '1'
      deny_commands:
      - '[message] &8[&e银行&8] &c金钱不足/没有足够空间'
      - '[sound] ENTITY_VILLAGER_NO'
    right_click_commands:
    - '[console] p take %player_name% 1'
    - '[console] eco give %player_name% 1000'
    - '[sound] ENTITY_VILLAGER_YES'
    - '[message] &8[&e银行&8] &a提现 &e1*金币 &7| &a获得 &e1000银币'
    requirements:
        points:
          type: '>='
          input: '%playerpoints_points%'
          output: '1'
    deny_commands:
      - '[close]'
      - '[message] &8[&e银行&8] &c金钱不足/没有足够空间'
      - '[sound] ENTITY_VILLAGER_NO'

银币换金币没有问题但是金币换银币就会有问题
插件并没有判断/判断失败
导致会产生刷钱现象。



##
已解决,忘了添加
right_click_requirement

2021.12 数据,可能有更多内容我想实现金币(点券):银币(eco)为1:1000的兑换
然后使用以下代码
left_click_commands:
    - '[console] p give %player_name% 1'
    - '[console] eco take %player_name% 1000'
    - '[sound] ENTITY_VILLAGER_YES'
    - '[message] &8[&e银行&8] &a充值 &e1*金币 &7| &a支出 &e1000银币'
    left_click_requirement:
   requirements:
  hasland:
    type: has money
    amount: 1000
  hasslot:
    type: '>='
    input: '%player_empty_slots%'
    output: '1'
   deny_commands:
   - '[message] &8[&e银行&8] &c金钱不足/没有足够空间'
   - '[sound] ENTITY_VILLAGER_NO'
    right_click_commands:
    - '[console] p take %player_name% 1'
    - '[console] eco give %player_name% 1000'
    - '[sound] ENTITY_VILLAGER_YES'
    - '[message] &8[&e银行&8] &a提现 &e1*金币 &7| &a获得 &e1000银币'
    requirements:
  points:
    type: '>='
    input: '%playerpoints_points%'
    output: '1'
    deny_commands:
   - '[close]'
   - '[message] &8[&e银行&8] &c金钱不足/没有足够空间'
   - '[sound] ENTITY_VILLAGER_NO'

银币换金币没有问题但是金币换银币就会有问题
插件并没有判断/判断失败
导致会产生刷钱现象。


##
已解决,忘了添加
right_click_requirement

supermiao
害,你这个已解决是真的快,我刚想打你少了right_click_requirement,结果仔细一看发现你下面还有行字

第一页 上一页 下一页 最后一页