Skip to content

LiveMarket 0.4.0

Choose a tag to compare

@rconpilot rconpilot released this 19 Nov 17:38
· 8 commits to main since this release

Crash-safe persistence, chart ranges, per-item volatility, and a trading pause.

What's new

  • Crash-safe persistence — data.yml is now written atomically (temp file + atomic move), the previous file is kept as data.yml.bak, and saves are sequenced so an older async snapshot can never overwrite a newer one. If data.yml is ever unreadable at startup, LiveMarket restores from data.yml.bak with a console warning instead of silently resetting every price.
  • Chart ranges in the GUI — the item detail view has a clock button that cycles the price chart through the last 9, 25, or 50 recorded points; the sparkline follows the same range. Price decay now records a history point whenever it moves a price, so charts show the drift between trades too.
  • Per-item volatility — any item in config.yml can override the global pricing pressure with its own pressure-k and max-move. Make diamonds sluggish and wheat wild, per item.
  • Admin trading pause — /market pause and /market resume freeze all buying and selling while leaving browsing and price checks open. Set settings.trading-enabled: false to start the server paused.

Verified

End-to-end on Paper 1.21.11 with Vault, EssentialsX and PlaceholderAPI, using a bot player and the built-in debug mode: global vs per-item pricing math, the GUI range button, pause blocking buys and sellall while price queries still answer, prices surviving a restart, and a deliberately corrupted data.yml restored from backup (WHEAT 5.0 and DIAMOND 120.24 recovered exactly).

Install

Drop LiveMarket-0.4.0.jar into your server's plugins/ folder and restart. Requires Paper 1.21.x, Vault, and any Vault economy plugin (e.g. EssentialsX). PlaceholderAPI is optional. Existing config.yml / data.yml from 0.3.0 keep working; new options are documented in the bundled config.yml.