🎉 [精灵]CompanionsPlus v3.0.0 版本已发布 ✨ 点击查看
Skip to content

金钱菜单 ​

菜单如何配置消耗金币/点券才能点击 ​

  • 主要节点

point 和 money 和ply(1.5.6+)

yaml
  'point':
    index: 22
    name: '   &8[&c点券消费&8]'
    material: ARROW
    lore:
      - "&f- &7点击点券消费"
    isEnchant: false
    custom-model-data: 0
    # 需要花费100点券才能点击
    point: 100
    # 点击按钮播放的声音1.12+支持
    sound: "BLOCK_ANVIL_HIT"
    # 条件不满足播放的声音1.12+支持
    # 音效列表 https://bukkit.windit.net/javadoc/org/bukkit/Sound.html
    failSound: "BLOCK_CHEST_CLOSE"
    commands:
      - '[command] say 你开通了vip'
      - '[allMessage] 恭喜 %player_name% 开通了点券vip'
  'money':
    index: 23
    name: '   &8[&c金币消费&8]'
    material: ARROW
    lore:
      - "&f- &7点击金币消费"
    isEnchant: false
    custom-model-data: 0
    # 需要花费100金币才能点击
    money: 100
    commands:
      - '[command] say 你开通了金币vip'
      - '[allMessage] 恭喜 %player_name% 开通了金币vip'
  'ply':
    index: 25
    name: '   &8[&c多货币消费&8]'
    material: ARROW
    lore:
      - "&f- &7点击多货币消费"
    isEnchant: false
    custom-model-data: 0
    # 需要花费ply的test货币100才能点击该按钮
    ply: 'test:100'
    commands:
      - '[command] say 你开通了多货币vip'
      - '[allMessage] 恭喜 %player_name% 开通了多货币vip'