Dexter Studio
HomeDexWorthHover Prices
DexWorth · Client-side prices

Hover Prices

A price line on every item in the inventory — drawn on the packet to the client, so the item on the server is never touched.

How it works

The price line is added to the item packet on its way to the client through ProtocolLib. The server-side item is never changed: stacking, shift-clicking, creative mode and every other plugin see a completely normal item. The line only exists in what the player is looking at.

Works in the player's inventory, in real containers (chest, ender chest, shulker, barrel, hopper) and in the sell menu. Menus built by other plugins are never decorated.

Configuration

display:
  hover-prices: true
  containers: true       # also show inside real containers
  lore:
    - "<gray>~<c>{symbol}{price}"
  refresh-ticks: 0        # only used with {total} / {amount}
PlaceholderShows
{price}Price of one item
{total}Price of the whole stack
{amount}Stack size
{trend}Market movement (needs the stock section)
<c>The GUI colour, so prices follow your theme

Keep {price} for zero overhead

With a {price} line the server never resends anything — the client already holds the priced item and carries the line through every move it predicts itself. No refresh, no flicker, nothing fighting creative mode.

{total} shows the whole-stack price, but that number goes stale the moment the amount changes, so slots have to be resent to keep it correct — that's what refresh-ticks is for (40 = every two seconds). It's ignored entirely with a {price} line and never runs in creative.

Without ProtocolLib

ProtocolLib is a soft dependency. Without it everything else works and the hover line simply isn't drawn — prices are still always available through /worth, /worth hand and the sell menu total.

Cleanup

Builds before 2.5 wrote the price into the real item's lore. These options remove anything they left behind — safe to switch off after a few days:

cleanup:
  on-join: true
  on-container-open: true

Or on demand: /dexworth clean [player|all].