Skip to content

Money Menu ​

How to Configure Button to Require Money/Points to Click ​

  • Main Nodes

point and money and ply(1.5.6+)

yaml
  'point':
    index: 22
    name: '   &8[&cPoints Consumption&8]'
    material: ARROW
    lore:
      - "&f- &7Click to consume points"
    isEnchant: false
    custom-model-data: 0
    # Requires 100 points to click
    point: 100
    # Sound played when clicking button (1.12+ support)
    sound: "BLOCK_ANVIL_HIT"
    # Sound played when conditions are not met (1.12+ support)
    # Sound list: https://bukkit.windit.net/javadoc/org/bukkit/Sound.html
    failSound: "BLOCK_CHEST_CLOSE"
    commands:
      - '[command] say You have activated VIP'
      - '[allMessage] Congratulations %player_name% for activating points VIP'
  'money':
    index: 23
    name: '   &8[&cMoney Consumption&8]'
    material: ARROW
    lore:
      - "&f- &7Click to consume money"
    isEnchant: false
    custom-model-data: 0
    # Requires 100 money to click
    money: 100
    commands:
      - '[command] say You have activated money VIP'
      - '[allMessage] Congratulations %player_name% for activating money VIP'
  'ply':
    index: 25
    name: '   &8[&cMulti-Currency Consumption&8]'
    material: ARROW
    lore:
      - "&f- &7Click to consume multi-currency"
    isEnchant: false
    custom-model-data: 0
    # Requires 100 of ply's test currency to click this button
    ply: 'test:100'
    commands:
      - '[command] say You have activated multi-currency VIP'
      - '[allMessage] Congratulations %player_name% for activating multi-currency VIP'