This guide will help you understand how to create and configure items in your ShopMaster shops. The plugin offers extensive customization options for various item types.
Basic Item Structure
Each item in a shop is defined by a unique ID under the items section. Here's the basic structure:
shopName:
items:
1: # Item ID (must be unique)
item:
material: DIAMOND_SWORD # Minecraft item material
quantity: 1 # Amount of items
name: "&bMagic Sword" # Display name (supports color codes)
lore: # Item description
- "&7A powerful sword"
- "&7that deals extra damage"
page: 1 # Page where this item appears
slot: 10 # Inventory slot position
economy: VAULT # Economy type (VAULT, TOKENS, etc.)
buyPrice: 100 # Price to buy from shop (-1 to disable)
sellPrice: 50 # Price to sell to shop (-1 to disable)
Slot Configuration
ShopMaster offers flexible slot configuration:
Single Slot
slot: 10 # Places item in slot 10
Multiple Slots
slots:
- 10
- 11
- 12
Range of Slots
slot: "10-15" # Places item in slots 10 through 15
Mixed Format
slots:
- "10-15"
- 20
- "22-24"
Advanced Item Features
Enchantments
item:
enchantments:
SHARPNESS: 5
UNBREAKING: 3
Item Flags
item:
flags:
- HIDE_ATTRIBUTES
- HIDE_ENCHANTS
Buy/Sell Commands
buy_commands:
- "[command] give %player_name% diamond 5"
- "[command] broadcast %player_name% bought a special item!"
sell_commands:
- "[command] eco give %player_name% 100"
- "[command] say %player_name% sold an item!"