6 releases, newest first.
guis/trade.yml a currency can have its own model, name and lore with optional templates named after its id: own-currency-<id>, own-currency-<id>-offered, partner-currency-<id> and partner-currency-<id>-offered. Whatever a currency does not declare keeps using the shared templates, so existing menus look exactly the same.countdown-waiting and countdown-running now receive {own} and {partner} (the traders' names).give-command, take-command ({player}, {amount}) and balance-placeholder on a currencies: entry with neither vault nor edtoolapi. A disabled credits example ships in fresh configs.1,500 or 1500.25); abbreviated values such as 1.5K are unreadable and logged once.PlaceholderAPI added to softdepend. Existing configs are untouched (the currencies section keeps your entries); copy the example from the README or docs to add one./trade preview (permission sntrade.admin.preview, default op, child of sntrade.admin): opens the trade menu exactly as a trade that just started (empty sides, nobody ready, the waiting clock), with you as both traders, so staff can check guis/trade.yml without a second account.messages.preview-opened and messages.preview-unavailable (auto-merged on boot). No configuration change.Hardening from the fifth full audit (0 critical findings; these are warning-level fixes).
INCIDENT files for the next boot. Cursor-rescue and take-back records are cleared when their claim commits after the player quit./trade reload after editing server-name keeps the running name (console warning: rename with a restart) and still applies every other setting. Before, the whole reload was dropped.scope.id: written through a forced temp file and a no-replace move, so a crash on the first boot cannot leave an empty identity file.messages.read-failed). A cancelled unrelated inventory open no longer drops the pending menu.cancel-words (new {cancel} placeholder); the request cooldown no longer shows 0s; lock/unlock confirmations reach the admin and staff even after a slow database write.InventoryOpenEvent#titleOverride on Paper builds older than 1.20.2.messages.read-failed merges automatically. Existing lang/messages_*.yml files keep their current input-chat-prompt text; add {cancel} there by hand if you want the configured words shown.save-player-data-on-complete: false) still keep their value-incident files until removed by hand.First stable release of SnTrade: secure player-to-player trading of items and Vault / EdTools currencies, built on SnLib.
Requirements: Paper 1.20.4 to 1.21.x, SnLib, the Sn bundle license key. Vault and EdTools are optional.
Highlights
Audit: final Sn audit gate PASSED (all criticals blind verified, final independent close pass clean). Not yet boot-tested on a live server; run a dev-server boot first.