
Shopkeepers Addon
Navigation & Economy » No more searching the shopkeepers marketplace to buy your favorite items.
41.8K
33
Список изменений
Changelog 2.25.0-260211
🚀 Universal Economy Integration
- Command-Based Economy: Implemented a universal economy system that works with any economy plugin (Essentials, CMI, Vault, etc.) by executing console commands and parsing output.
- Zero Dependencies: Removed hard dependency on Vault API.
- Console Capture: Created a custom
ConsoleCapturesystem to intercept command output for balance checking. - Configuration: Added comprehensive
economysection toconfig.ymlfor defining commands, regex patterns, and transaction settings.
🛡️ Strict Balance Checks
- Trade Selection: Validates player balance (buying) and shop owner balance (selling) immediately when a trade is selected.
- Pre-Trade Verification: Re-checks balance right before transaction execution to prevent race conditions.
- Post-Trade UI Update: Automatically refreshes the trade UI to remove items if the player/owner can no longer afford the trade.
- Owner Insolvency Protection: Prevents selling to player shops if the owner lacks funds (unless configured otherwise).
🐛 Critical Bug Fixes
- Recursion Guard: Fixed
Recursive call to appendererrors inConsoleCaptureby implementing aThreadLocalguard. - ANSI Parsing Fix: Fixed incorrect balance parsing (e.g.,
336.0) by stripping ANSI color codes from console output before parsing. - Heuristic Parser: Improved auto-detection logic to scan log lines in reverse, prioritizing the most recent output.
📦 Maintenance
- API Update: Updated
ShopkeepersAPI dependency tov2.25.0. - Version Bump: Project version updated to
2.25.0-260211.
Файлы
ShopkeepersAddon-2.25.0-260211.jar(104.01 KiB)
ОсновнойМетаданные
Канал релиза
Release
Номер версии
2.25.0-260211
Загрузчики
BukkitPaperPurpurSpigot
Версии игры
1.20.6–1.21.11
Загрузок
244
Дата публикации
1 мес. назад
