Shop Menu
# How to Sell/Buy Items in the Menu
- Main Nodes
shopType node - Shop type
- sell - Sell
- buy - Buy
- leftBuyRightSell - Left click to buy, right click to sell (1.7.7+)
- leftSellRightBuy - Left click to sell, right click to buy (1.7.7+)
shopMaterial node - Items sold/purchased by the shop
Format: Item material:quantity
- Vanilla items:
shopMaterial: 'APPLE:64' - Item library items (1.7.7+):
shopMaterial: '[ID]:64'
shopMoney - Gold coins
shopPoint - Point coupons
shopCurrency - Multi-currency price (1.4.2+)
# shopMoney Example (1.2.0+)
Requires money plugin Vault (opens new window)
'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"
# Shop 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"
# Shop price
shopMoney: 100
# shopPoint Example (1.2.0+)
Requires points plugin PlayerPoints (opens new window)3.0.0+
'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"
# Shop 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"
# Shop price
shopPoint: 100
# shopCurrency Example (1.4.2+)
Requires multi-currency plugin PlayerCurrency (opens new window)1.0.3+
'42':
index: 42
name: ' &8[&cBuy Items with Custom Currency&8]'
material: POTATO
lore:
- "&f- &7100 buys 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"
# Shop price 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}"
# Shop price Type: price
shopCurrency: "money:${input * 100}"