DUXPLIMA Documentation

Messages and menus

Where every line players read lives, how a message is delivered, and how menus are laid out.

No text players see is written in the plugin's code. Every line is in messages.yml and the menu/*.yml files, in the language set in config.yml. The Discord texts are in webhooks.yml.

A message

infoBuildStarted:
  type: 'CHAT'
  text:
    - '<green>Construction started!</green> <dark_gray>#%job.id%</dark_gray>'
    - '<gray>Total blocks: <white>%job.total%</white></gray>'
  sound: 'BLOCK_ANVIL_USE'
  volume: 0.6
  pitch: 1.0
KeyMeaning
typeWhere it goes; see below
textOne line or a list, in MiniMessage
subtitleFor TITLE
fadeIn, stay, fadeOutTicks, for TITLE; stay also for BOSSBAR
colorBar colour for BOSSBAR
sound, volume, pitchPlayed with the message
permissionFor BROADCAST, only players holding it receive it

A simple chat line can be written on one line: trustAdded: '<green>...</green>'.

TypeDelivered as
CHATA chat line to the player
BROADCASTA chat line to everyone online
ACTIONBARAbove the hotbar
TITLEA title and subtitle
BOSSBARA temporary boss bar, hidden after stay ticks
CONSOLEThe server log, as plain text
NONENothing; the way to silence a message without deleting it

A misspelled type is logged once and treated as CHAT rather than breaking the file. A sound that is not one of Minecraft's sound names is played as a sound key, so sounds from a resource pack work.

Placeholders

Messages carry %name% placeholders filled by the plugin, such as %job.id%, %package.name%, %economy.refund% or %builder.level%. Each file's comments list what each line receives. PlaceholderAPI placeholders are not parsed inside these files.

One file per menu under menu/:

FileMenu
main.yml/builders: shop, active builds, crew, warehouse, history, balance
shop.ymlCategory tabs and packages
confirm.ymlThe purchase confirmation
jobs.ymlActive builds, your own and those shared with you
job.ymlOne build: progress, pause, resume, boost, materials, cancel
materials.ymlA package's or a build's material list
crew.ymlBuilders: select, buy, upgrade
warehouse.ymlThe material store
history.ymlFinished and cancelled builds
market-browse.ymlThe player market: category tabs, sort, search and listings
market-listing.ymlOne listing: details, buy, preview, materials, report
market-confirm.ymlThe purchase confirmation of a design
market-designs.ymlMy designs: what a player bought
market-sell.ymlA listing before it is published: icon, category, fee, publish
market-mine.ymlA seller's listings and earnings
market-manage.ymlOne of the seller's listings: price, texts, category, icon, pause, withdraw
market-reports.ymlReported listings, for moderators
market-inspect.ymlOne listing as moderators see it, with their decisions
title: '<white>Construction #%job.id%</white>'
size: 5

# The progress bar: one pane per slot, lit from the first as the build advances.
itemSlots: [ 10-16 ]

items:
  cancel:
    type: 'BARRIER'
    name: '<red><bold>Cancel Build</bold></red>'
    lore:
      - '<gray>Refund:</gray> <gold>%refund%</gold>'
    glow: false
    amount: 1
    model: 0
    slot: 24
KeyMeaning
titleMiniMessage, with the tokens the file's header lists
sizeRows, 1 to 6
itemSlotsThe slots a list fills (packages, builds, builders, history entries, materials, listings), in the order written
storageSlotsIn warehouse.yml, the slots that hold real items; in market-browse.yml, the category tabs
itemsThe menu's buttons and the templates its lists are drawn from
otherItemsDecoration: an entry with a slot is drawn there; the one without a slot fills every empty slot

Slot lists take single slots and ranges: [ 10-16, 19-25, 31 ].

Each item takes:

KeyMeaning
typeThe material
name, loreMiniMessage
glowEnchantment shimmer
amountStack size, from 1 to the material's maximum
modelCustom model data, used when above 0
slot, slotsWhere it goes; slots is a list for an item shown in several places
textureA base64 skin value, for a PLAYER_HEAD
playerCommands, consoleCommandsCommands run on click, as the player or as the console, with the item's tokens filled in

Some items take their material from elsewhere (a package's or a category's icon) and use only the name and lore from the file; the header comment of each file says which, and which placeholders each item gets. An item without a slot is not drawn.

Bedrock forms

Six market menus have a second file under menu/bedrock/: market-browse, market-listing, market-confirm, market-mine, market-designs and market-sell. A player joining through Geyser or Floodgate, with bedrock.enabled and bedrock.menus on in config.yml, gets these menus as a list of buttons instead of a chest. The buttons are the chest menu's items in slot order, without the frame panes, and pressing one does what clicking the item does. Every other menu stays a chest for Bedrock players.

enabled: true
title: ''
content:
  - '<gray>Designs you bought: <white>%designs%</white></gray>'
buttons:
  entry:
    label: '<white>%purchase.title%</white><newline><gray>Builds: <white>%purchase.credits%</white></gray>'
    clicks:
      LEFT: '<green>Get the blueprint</green>'
      RIGHT: '<aqua>Preview where you look</aqua>'
      SHIFT_LEFT: '<white>Materials</white>'
KeyMeaning
enabledfalse gives Bedrock players the chest menu here too
titleThe form's title; empty uses the chest menu's
contentLines shown above the buttons
buttonsOnly the items that should look different on Bedrock, by their key in the chest menu's file

Each entry under buttons takes:

KeyMeaning
labelThe button's text, in MiniMessage, with the item's placeholders; empty uses the item's name
imageA texture of the Bedrock resource pack (textures/items/emerald), an https URL, or none; empty picks an icon for the item's material
hiddentrue leaves the item out
clicksFor an item that does different things per click in the chest: the choices offered after pressing it, each under the click it stands for (LEFT, RIGHT, SHIFT_LEFT, SHIFT_RIGHT)

A button that opens nothing, such as the sort, brings the form back once it is done, as a chest would stay open. The button that leads back from a list of choices is the bedrockBack message. The files follow the language and are read again on reload; one that cannot be read gives Bedrock players the chest menu until it is fixed.

Updating

An update never replaces the files on your server, yet they stay complete:

Your file lacksWhat happens
A message keyThe English text built into the plugin is used. New keys are also added to your file when the plugin updates it
A menu button added in a later versionIt is taken from the shipped copy in memory and shown, without your file changing
A decorative otherItems entry you deletedIt stays deleted

To change a line, edit it; to silence a message, set its type to NONE. To hide a menu button, keep its entry and remove its slot: a button you delete from items comes back from the shipped copy.

Related: Languages, Placeholders