Typewriter 0.9.0-beta-175 (Java 21).
Fixes
- A shop can no longer take a player below zero. Three independent paths allowed it: Vault trusted
transactionSuccess()on its own, buy-max forced a purchase of one item when the player could afford none, and the placeholder economy read an unreadable balance as zero. - The affordability rule now lives on the
Economyinterface itself:balanceOrNullreturns null when the balance cannot be read, so "unknown" is never mistaken for "empty", and a shared epsilon keeps floating point from rejecting an exact payment. - New
BalanceParserreads formatted balances, including non-breaking and narrow no-break space separators and short forms such as12.5k.
Compatibility
- Requires Typewriter 0.9.0-beta-175.
- Existing shop pages need no change; no migration from v1.2.
Install the attached JAR in the Typewriter extensions directory and reload the server.
Documentation: https://docs.borntocraftstudio.net/extensions/free/shop/