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, or their copies under lang/<code>/ for another language.

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 and 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
CONSOLEThe server log, as plain text
NONENothing; the way to silence a message without deleting it

A misspelled type is logged and treated as CHAT rather than breaking the file.

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
title: '<white>Construction #%job.id%</white>'
size: 5
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

size is the number of rows. type is the material, model the custom model data, slot the position. Some items take their material from elsewhere (a package'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.

Updating

Bundled files are the fallback for anything your copy lacks. A line added in an update appears even though your file is older, and deleting a line from your file brings the shipped text back. To change a line, edit it; to silence a message, set its type to NONE.

Related: Languages, Placeholders