DUXPLIMA Documentation

Sections and lines

Section keys, line keys and types, item blocks, rotation, refusals, and the shipped sections.

A section is a file under shops/. Its file name is its id: the argument of /shop open <section> and the end of the node uxmshop.section.<section>. Each file holds the section's settings and a lines block, one entry per product. Every shipped section explains the grammar in a comment at the top.

Section keys

KeyMeaning
orderWhere the section sits on the hub; HOCON does not keep the order a block was written in
menuWhich window in menus/ draws it; section by default
permissionThe node needed to open it; left out, everybody may
buy-permissionThe node needed to buy from it
sell-permissionThe node needed to sell to it; a section with only a buy node is bought from and not sold to
currencyWhich currency its lines price in; left out, shop.default-currency
iconThe tile the hub shows
name, descriptionA plain string for everybody, or a block per language: name { any = "Tools", tr = "Aletler" }
bandThe dynamic price band every line takes unless it names its own
rotationenabled, size (6), every (24h): shows size lines at a time and swaps them every every

A rotation is worked out from the clock, so every server behind one proxy shows the same lines.

Line keys

KeyMeaning
orderWhere the line sits on the page
typeitem, command, shortcut (to another section, named by section), decoration or blank
itemWhat an item line hands over
iconThe face of the tile, when it differs from what is sold
buyWhat a player pays; left out, the line cannot be bought
sellWhat a player is paid; left out, it cannot be sold
matchHow strictly a sold item is matched
permissionThe node needed for this line
conditionsWhat a player must meet, as "%placeholder% >= 10"
actionsWhat runs after a purchase
floor, ceilingThe lowest and highest the price may reach
bandA band for this line alone
stockServer stock and per player quotas
currencyThe currency of this line
name, descriptionThe line's own words

An item block reads material, amount, and any of name, lore, enchants, stored-enchants, custom-model-data, damage, unbreakable, potion, potion-effects, colour, firework, trim, head, spawner, patterns, model. /uxmshop iteminfo prints the block of the item in your hand.

A line's actions run without the message files: write plain MiniMessage, not a theme tag or an @ key.

What is refused

  • A command line that can be sold back.
  • A line that pays more than it charges.
  • An item field the plugin does not know, so a typo is never mistaken for a setting that worked.

The console lists every problem at start and on reload; the rest of the catalogue loads.

The shipped sections

Both price in experience, so a bare server trades.

SectionLineBuySellMatch
blocks64 stone6416material
blocks64 dirt328material
blocks64 glass12832material
toolsIron pickaxe35090full-meta-ignoring:damage
tools64 cobblestone328material
toolsRepair kit (a command line)500

The repair kit's only action is a message: write the command that mends the tool before you sell it.

Related: Section files