Changelog
Bug Fixes
Config Backup Behavior
- Fixed: Configuration was being backed up on every restart/reload
- Change: Backup now only occurs when there are actual changes to the configuration (e.g., new additions)
Chat Message Formatting
- Fixed: Messages in chat were not following custom price formatting rules
- Change: Chat messages now correctly display custom price formatting as configured
ShopkeepersAddon Update
🔧 Optimizations
- Reduced code duplication
- Optimized error handling
- Improved simulate click for Shop Edit Task
- Async file operations
- Added null safety checks
- Better logging
- Separated config loading
- Added cleanup on plugin disable
🚀 Added Features
- Added
/shopkeepersaddon reload
command - Added economy price formatting in config:
economy:
# Price formatting options
price-format:
# Format pattern using DecimalFormat syntax:
# 0 = prints digit if provided, 0 otherwise
# # = prints digit if provided, nothing otherwise
# . = decimal separator position
# , = thousands grouping separator position
pattern: '#,##0.00'
# Swap decimal and grouping separators for European format
# true: 1.000.000,00 (European) | false: 1,000,000.00 (Western)
european-format: false
# Custom separators (optional - overrides european-format if both are set)
# decimal-separator: '.'
# grouping-separator: ','
# Currency symbol and position
currency-symbol: '$'
symbol-before: true # true: $100 | false: 100$
- Added purchase feedback messages:
messages:
buySuccess: "§aYou have bought %item% for %price%."
sellSuccess: "§aYou have sold %item% for %price%."
- Optimized bulk item purchase system
- Added automatic config migration on version update
- NEW! Blacklist items in player shops!
- Fixed! Error on empty trade selection.
Add the following to your config.yml:
playerShops:
# Blacklist items that cannot be sold in player shops
itemBlacklist:
- BEDROCK
messages:
blacklistedItem: "§cThis item is blacklisted and cannot be sold in player shops."
FIXED!
- Null pointer exception on creating/trading shops.
NEW!
- Added Custom Model Data. If you are upgrading, add in config:
economy:
# Enable economy support
enabled: true
# Set the price limit for trades
selling-price-limit: 100000000.00
# Currency Item:
sell-item:
# Name format. Use %price% for the price.
name: "Price: §f$%price%"
material: GOLD_NUGGET
glow: true
lore:
- "§bClick to edit"
custom-model-data: 0 # Set to 0 to disable custom model data for the sell item
# Currency Item:
buy-item:
# Name format. Use %price% for the price.
name: "You get: §f$%price%"
material: GOLD_NUGGET
glow: true
lore:
- "§bClick to edit"
custom-model-data: 0 # Set to 0 to disable custom model data for the buy item