DUXPLIMA Documentation

Announcements

Bundles of announcements on chat, action bar, title, boss bar or sound, with conditions, centring and playtime gates.

Module: announcements. A bundle says its announcements one after another, every interval-seconds.

The shipped bundles

BundleEveryOrderAnnouncements
tips300 ssequentialdiscord, rules, channels (from 5 minutes of playtime), settings, all in chat
welcome60 ssequentialnewcomer: on the action bar, once per visit

A bundle

KeyMeaning
interval-secondsThe time between two announcements of the bundle
ordersequential, or random; a random bundle never says the same announcement twice in a row
from, untilA time of day, such as "18:00", between which the bundle speaks; empty for all day

An announcement

KeyMeaning
linesMiniMessage lines; a line that starts with @ is a line of the messages files in each reader's language; an empty line is a blank line
surfaceschat, action-bar, title, boss-bar, sound
soundFor the sound surface, such as minecraft:block.note_block.bell
permissionWho hears it; empty is everyone
worldsThe worlds it is heard in; empty is every world
min-onlineSaid only with at least this many players online
min-playtime-minutesHeard only by players with this much playtime
once-per-sessionHeard once by each player per visit
centredEach chat line drawn in the middle of the chat
enabledfalse keeps it with its lines and never says it
conditionWho hears it, tested for each player

A line may hold PlaceholderAPI placeholders, filled in for each player who reads it. A player who turned announcements off in their settings hears none.

Centred announcements

With centred = true, each chat line is drawn in the middle of the chat, measured with the client's own font, so a title, a line or two of text and a link read as one framed notice.

Conditions

TestExample
A permissionpermission:uxmchat.vip
A worldworld:hub
A game modegamemode:survival
A placeholder against a value%vault_eco_balance% >= 1000

Join tests with && (all) and || (any), and turn one round with !: permission:uxmchat.vip && !world:pvp. A condition that does not read is heard by nobody.

The other surfaces

How long a title stays and the boss bar's colour, notches and time are under announcements in config.conf:

KeyDefault
title.fade-in-ms, stay-ms, fade-out-ms500, 3000, 500
boss-bar.colourblue: pink, blue, red, green, yellow, purple or white
boss-bar.overlayprogress, or notched-6, notched-10, notched-12, notched-20
boss-bar.seconds8

Managing them

announcements.conf is read once into the database. After that:

CommandDoes
/announcementsLists every announcement as bundle/id, where it shows and whether it is on
/announcements preview <bundle/id>Shows you one as a player sees it
/announcements say <bundle/id>Says it now
/chateditor announcementsThe bundles: interval, order, hours, announcements
/chateditor announcementEach announcement with every field above

Related: announcements.conf, In-game editors