Skip to content

DyMarket 1.2.0-BETA

Pre-release
Pre-release

Choose a tag to compare

@cl5w cl5w released this 05 Dec 15:50

DyMarket 1.2.0-BETA

DyMarket 1.2.0-BETA makes money safer and faster. It adds six features that players asked for: turning off payments, your own transaction history, a server total in /baltop, a listing fee, auction price history and category filters. The auction and estate windows also show more useful facts. Every new feature can be switched off, and your data, settings and edited messages carry over.

Added

  • /pay toggle. Players can stop other players from paying them, and turn it back on with the same command. /pay and /credits send to that player are refused with a clear message. The choice is saved and kept after a restart. Switch: pay.allow-toggle (default true). Permission: dymarket.pay.toggle.
  • Your own history. /dymarket history [page] lists your last payments, sales, rent, refunds and other transactions, eight to a page, with the amount, the other player and the time. Staff still read other players' logs with /dyma log <player>. Switch: history.enabled (default true). Permission: dymarket.history.
  • Server total and your rank in /baltop. Under the list, /baltop shows the total of all balances in that currency, and your own place when you are on the list. Switch: baltop.show-total (default true).
  • Auction listing fee. An optional fee to put an item up for sale: a fixed amount, a percent of the price, or both. The fee is taken when the item is listed, it leaves the economy, and it is not returned if the item does not sell. If the seller cannot pay, the item stays in their hand. Settings: auction.listing-fee.flat and auction.listing-fee.percent (both 0, so off by default). dymarket.bypass.fee skips it.
  • Auction price history. /ah prices shows how much the item in your hand sold for recently: number of sales, the lowest, average and highest price per item. The guide button in the auction window mentions it too. Settings: auction.price-history.enabled (default true) and auction.price-history.days (default 30).
  • Category filter in the auction window. A new button filters the listings to Blocks, Tools, Combat, Food, Potions, Books, Redstone or Other. Left-click shows the next category and right-click the one before. The filter stays when you change page, sort or search. Switch: auction.gui.categories (default true).

Changed

  • Clearer auction and estate windows. Stacks show the price per item, and estate listings with more than one chunk show the price per chunk. The confirm window shows your balance now and after the purchase. When you cannot afford the item, the confirm button turns orange and shows the price next to your balance.
  • Collection box button. The button shows an ender chest when items are waiting, and a barrel when the box is empty.
  • Faster. Money amounts are formatted with cached formatters. Message lists are cached until the next reload. The transaction log is saved in one batch. /baltop reads the list and the total in one step. The auction window builds and sorts its list once per page instead of once per slot.
  • No network lookups on the main thread. Vault calls with a player name look in memory and in DyMarket's own data before they ask the server. They never wait for Mojang.
  • The help shows /pay toggle, /dymarket history and /ah prices only when that feature is on.

Fixed

  • Money lost after a failed save. When saving failed while an idle account was being taken out of memory, the newest balance of that account could be lost. Accounts that are being saved now stay in memory until the save is finished.
  • Purchases could be charged only half. An auction or estate purchase took the seller's part and the tax in two steps, so a balance that changed between them could leave a payment half done. Both parts are now taken together, or nothing is taken.
  • Buying at a price you did not see. When staff changed a listing's price after you opened it, a click or chat confirm bought it at the new price. The purchase is now refused with a message, and you can look again.
  • Rent charged again and again after downtime. When the server was off for longer than one rent period, the next renewal started from the old end date, so the tenant was charged again on every check. A late renewal now charges once and the new period starts at that moment.
  • Renewing an evicted lease. If the owner evicted a tenant while the renewal was being charged, the lease was still extended. The money now goes back to the tenant and the lease ends.
  • A refund that paid nothing. When an owner had less money than the full refund to a tenant, the refund could fail completely. It now pays what the owner has.
  • A rare race when loading an account. A balance change could be lost if the account was taken out of memory at the same moment. The account is now loaded again first.

Upgrading

  • Replace the JAR and restart. The data file moves to schema 2 on its own: three columns and one index are added, and no existing rows change. As always, a backup is made in plugins/DyMarket/backups/ first.
  • The new settings are added to config.yml on start. The listing fee is off. The other features are on, because they only add choices for players. Set a switch to false to keep the 1.1.0-BETA behaviour.
  • Message texts you never edited are replaced with the new ones; texts you edited are kept. New keys are added in all five languages.
  • /dymarket history used to open the staff log. Staff now use /dyma log <player>; /dymarket history <player> still works for staff with dymarket.admin.economy.

Full changelog: https://dynastyplugins.com/dymarket/versions/1.2.0-BETA