🎮Custom Click Event - Premium

  • Start from version 2.5.1, you can set custom click event for products in shop GUI.

  • Find those content at config.yml file.

  # Support value: https://hub.spigotmc.org/javadocs/spigot/org/bukkit/event/inventory/ClickType.htm
  # Support use ;; symbol to make multi click type.
  click-event:
    buy: 'SHIFT_LEFT'
    sell: 'RIGHT'
    buy-or-sell: 'LEFT'
    # If you want to disable select-amount feature, set this to NEVER.
    select-amount: 'SHIFT_RIGHT'
    sell-all: 'DROP'
    buy-one-stack: 'SWAP_OFFHAND'
  # Custom click actions for shop menu.
  # Premium version only.
  click-event-actions:
    buy-one-stack:
      1:
        type: buy
        shop: {shop}
        item: {item}
        amount: 64
  • Here we create a new custom click event called buy-one-stack, in this custom event, we will execute a action which can buy this product x64 amount.

  • After reload the server, if you press F key on a product, we will execute the action you set in click-event-actions section, like here we will buy x64 this item.

Last updated