Skip to content

Purchase Limit Menu ​

How to Configure Click Limit in Menu ​

  • Main Nodes

limit -> Button will show even after exceeding usage limit
limitHide(1.3.4+) -> Button will not show after exceeding usage limit, recommended to use with [refresh] Note: 1. Need id to determine 2. Only choose one of the above nodes to configure

yaml
  'limit':
    index: 24
    name: '   &8[&cCan Only Purchase 3 Times&8]'
    material: ARROW
    lore:
      - "&f- &7Click to purchase with money"
      - "&f- &7Limited to 3 uses"
    isEnchant: false
    custom-model-data: 0
    # Requires 100 money to click
    money: 100
    # Identifier function (if manually adding id node, use negative numbers, cannot be duplicated, need id to determine cd and limit)
    id: -1
    # Limit to only 3 uses of this button
    limit: 3
    commands:
      - '[command] say You have activated money VIP'
      - '[allMessage] Congratulations %player_name% for activating money VIP'

Small Reminder ​

Can use command /plm clear [id] to clear purchase limit count
Can work with scheduled task plugins to implement daily/weekly purchase limits, etc.
Clear single ID: /plm clear 1
Clear multiple IDs: /plm clear 1,2,3