Favorites
Favorite listings in market-data.yml — toggle in Detail slot 4, cleared when listing is removed.
Based on GrzybcioRynek 1.0.3 and web 0.1.0 source.
Favorites are a set of listing IDs per UUID. Storage: market-data.yml → favorites.<uuid>: [id, …]. Toggle: ExtendedDataStore.toggleFavorite.
Enabling
favorites:
enabled: trueWhen false:
/market favorites/ulubione→messages.favorites.disabled- browse button slot 51 → same message, return to browse
FavoritesGUI will not open.
How to add / remove
In MarketDetailGUI slot 4 (when the flag is enabled). Messages: favorites.added / favorites.removed ({id}).
There is no “add to favorites” command — only the detail GUI or later clicking in FavoritesGUI (opens Detail).
GUI
FavoritesGUI — 54 slots, listings in 21 slots (10–16, 19–25, 28–34), back 45, pagination 48/49/50. Empty: gui.favorites.empty on slot 22.
Click listing → MarketDetailGUI.
Cleanup
When a listing is removed (purchase, remove, expiry, forceexpire), removeFavoriteEverywhere(listingId) is called. Dead IDs disappear for all players.
Data
favorites:
069a79f4-44e9-4726-a5be-fca90e38aaf5:
- 12
- 44Async save: saveAsync (temp + atomic move). Backup .bak on enable/reload.