The
/sell command requires the
tz.sell permission.
To make it so players can click an NPC to open the sell menu, set the NPC's command to
/sell <player>, where
<player> is the target player's name (no permission for the player required)
All settings are
fully customizable!
Code (YAML):
# TzSellMenu Configuration
messages:
no-permission
:
"&c&lNOTE! &cYou must have a rank to sell from anywhere!"
console-missing-player
:
"&cUsage: /sell <player>"
player-not-found
:
"&cPlayer not found!"
sold-success
:
"&a&lSOLD! &aYou have sold %items% items for $%amount%"
sell-failure
:
"&c&lFAILURE! &cThere are no sellable items"
gui-title
:
"&8Sell Menu"
sell-button-name
:
"&fSell Items"
sell-button-lore-inactive
:
"&7Place items to sell in the inventory."
sell-button-lore-active
:
"&7Total Value: $%value%||&7[CLICK TO SELL ITEMS]"
item-value-lore
:
"&7Value: &a$%value%"
item-unsellable-lore
:
"&7Value: &c$0"
# Pricing system settings
pricing
:
# Enable debug logging to see which pricing source is used for each item
debug-pricing
: false
# Show pricing source in item lore (useful for testing)
show-pricing-source
: false
Code (YAML):
# ========================================
# TzSellMenu - Item Worth Configuration
# ========================================
#
# IMPORTANT: This file is used as a FALLBACK ONLY!
#
# Item pricing priority order:
# 1. Vault-based economy plugin pricing (EssentialsX, etc.)
# 2. This worth.yml file (FALLBACK ONLY)
#
# This means worth.yml values are ONLY used when:
# - Your economy plugin doesn't provide item pricing through Vault
#
# If your economy plugin (like EssentialsX) has item worth configured,
# those values will be used instead of the values below.
#
# Format: MATERIAL_NAME: price
# ========================================
items
:
# Basic Blocks (Fallback pricing)
COBBLESTONE
: 1
STONE
: 2
DIRT
: 1
GRASS_BLOCK
: 2
SAND
: 1
GRAVEL
: 1
# Wood (Fallback pricing)
OAK_LOG
: 5
BIRCH_LOG
: 5
SPRUCE_LOG
: 5
JUNGLE_LOG
: 5
ACACIA_LOG
: 5
DARK_OAK_LOG
: 5
CHERRY_LOG
: 5
MANGROVE_LOG
: 5
# Ores & Ingots (Fallback pricing)
COAL
: 3
IRON_INGOT
: 10
GOLD_INGOT
: 20
DIAMOND
: 50
EMERALD
: 30
COPPER_INGOT
: 5
# Food (Fallback pricing)
WHEAT
: 2
CARROT
: 1
POTATO
: 1
BEETROOT
: 1
SUGAR_CANE
: 3
CACTUS
: 4
MELON
: 2
PUMPKIN
: 3
APPLE
: 2
# Mob Drops (Fallback pricing)
ROTTEN_FLESH
: 1
BONE
: 2
STRING
: 1
SPIDER_EYE
: 3
GUNPOWDER
: 5
# Note: Add more items as needed, but remember these are FALLBACK values only!
REQUIRES: Vault
REQUIRES: Any economy plugin (e.g. Essentials)
OPTIONAL HOOK: Essentials (uses item worth that essentials has if you have it, else goes to our worth.yml)