Skip to content

Shop Menu ​

How to Sell/Purchase Items in Menu ​

  • Main Nodes

shopType node — Shop type

  1. sell — Sell
  2. buy — Purchase
  3. leftBuyRightSell — Left click buy, right click sell (1.7.7+)
  4. leftSellRightBuy — Left click sell, right click buy (1.7.7+)

shopMaterial node — Material of item to sell/purchase

Format: material:quantity

  1. Vanilla item shopMaterial: 'APPLE:64'
  2. Item library item (1.7.7+) shopMaterial: '[ID]:64'

shopMoney — Money
shopPoint — Points
shopCurrency — Multi-currency price (1.4.2+) shopGiveMaterial — Item given by shop (1.8.2+)

shopMoney Example (1.2.0+) ​

Requires money plugin Vault

yaml
'sell':
  index: 38
  name: '   &8[&cSell Items for Money&8]'
  material: APPLE
  lore:
    - "&f- &7Click to sell items"
    - "&f- &7Sell 64 apples for 100 money"
  isEnchant: false
  custom-model-data: 0
  # Shop type: sell is selling, buy is purchasing
  shopType: 'sell'
  # Items to sell, format: material:quantity
  shopMaterial: "APPLE:64"
  # Price
  shopMoney: 100
  commands:
    - '[message] Successfully sold 64 apples for 100 money'
'buy':
  index: 39
  name: '   &8[&cBuy Items with Money&8]'
  material: APPLE
  lore:
    - "&f- &7Click to buy items"
    - "&f- &7100 money buys 64 apples"
  isEnchant: false
  custom-model-data: 0
  # Shop type: sell is selling, buy is purchasing
  shopType: 'buy'
  # Items to sell, format: material:quantity
  shopMaterial: "APPLE:64"
  # Price
  shopMoney: 100

shopPoint Example (1.2.0+) ​

Requires points plugin PlayerPoints 3.0.0+

yaml
'sell1':
  index: 40
  name: '   &8[&cSell Items for Points&8]'
  material: POTATO
  lore:
    - "&f- &7Click to sell items"
    - "&f- &7Sell 64 potatoes for 100 points"
  isEnchant: false
  custom-model-data: 0
  # Shop type: sell is selling, buy is purchasing
  shopType: 'sell'
  # Items to sell, format: material:quantity
  shopMaterial: "POTATO:64"
  # Price
  shopPoint: 100
'buy1':
  index: 41
  name: '   &8[&cBuy Items with Points&8]'
  material: POTATO
  lore:
    - "&f- &7Click to purchase items"
    - "&f- &7100 points buys 64 potatoes"
  isEnchant: false
  custom-model-data: 0
  # Shop type: sell is selling, buy is purchasing
  shopType: 'buy'
  # Items to sell, format: material:quantity
  shopMaterial: "POTATO:64"
  # Price
  shopPoint: 100

shopCurrency Example (1.4.2+) ​

Requires multi-currency plugin PlayerCurrency 1.0.3+

yaml
'42':
  index: 42
  name: '   &8[&cBuy Items with Custom Currency&8]'
  material: POTATO
  lore:
    - "&f- &7100 to buy 1 potato"
  isEnchant: false
  custom-model-data: 0
  # Shop type: sell is selling, buy is purchasing
  shopType: 'buy'
  # Items to sell, format: material:quantity
  shopMaterial: "POTATO:1"
  # Price format: type:price
  shopCurrency: "money:100"
'43':
  index: 43
  name: '   &8[&cBuy Items with Custom Currency&8]'
  material: POTATO
  lore:
    - "&f- &7Click to buy potatoes"
  isEnchant: false
  custom-model-data: 0
  # Shop type: sell is selling, buy is purchasing
  shopType: 'buy'
  input: '[number] Please enter purchase quantity'
  # Items to sell, format: material:quantity
  shopMaterial: "POTATO:${input}"
  # Price format: type:price
  shopCurrency: "money:${input * 100}"

shopGiveMaterial Example (1.8.2+) ​

yaml
'sell':
  index: 38
  name: '   &8[&cItem for Item Exchange&8]'
  material: APPLE
  lore:
    - "&f- &7Click to sell items"
    - "&f- &7Sell 64 apples for 64 stone"
  isEnchant: false
  custom-model-data: 0
  # Shop type: sell is selling, buy is purchasing
  shopType: 'sell'
  # Items to sell, format: material:quantity
  shopMaterial: "APPLE:64"
  # Price is an item, format: material:quantity
  shopGiveMaterial: "STONE:64"