Unofficial site, not affiliated with modrinth.com.What is this?
Плагины/Shopkeepers Addon
Все версииShopkeepers Addon 2.25.0-260211

Shopkeepers Addon 2.25.0-260211

Release4 мес. назад

Список изменений

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 ConsoleCapture system to intercept command output for balance checking.
  • Configuration: Added comprehensive economy section to config.yml for 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 appender errors in ConsoleCapture by implementing a ThreadLocal guard.
  • 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 Shopkeepers API dependency to v2.25.0.
  • Version Bump: Project version updated to 2.25.0-260211.

Метаданные

Канал релиза

Release

Номер версии

2.25.0-260211

Загрузчики

Bukkit
Paper
Purpur
Spigot

Версии игры

1.20.6–1.21.11

Загрузок

333

Дата публикации

4 мес. назад

Загрузил

ID версии

Главная