Skip to content

Messages

CobaltiaAnnonces handles two kinds of text: your announcements, fully defined in annonces.json, and the plugin’s messages (confirmations, errors), which are fixed.

Lines, the title, and frame tops and bottoms use Adventure’s MiniMessage format:

Need Example
Named or hex color <gray>Text, <#6FE2E8>Text
Gradient <gradient:#5FD3FF:#1E6BFF>Text</gradient>
Style <bold>, <u>, <i>
Command on click <click:run_command:'/vote'>/vote</click>
Link on click <click:open_url:'https://example.com'>site</click>
Hover text <hover:show_text:'<gray>Vote'>…</hover>

In JSON, wrap tag arguments in single quotes ('…') so you do not have to escape double quotes.

When PlaceholderAPI is installed, placeholders in lines are replaced for each recipient at send time: %player_name% shows the name of every player receiving the announcement. The title and frames are not affected.

CobaltiaAnnonces does not provide placeholders of its own.

An announcement’s son field takes a Minecraft sound key (entity.experience_orb.pickup, block.note_block.pling…). The sound is played to each recipient at normal volume and pitch. A malformed key is ignored; the announcement is still sent.

With a frame, every non-empty line is centered within the frame width, based on the actual width of its characters (bold included). Blank lines stay blank. The title is centered using the width declared in titre.largeur. See Configuration for details.

Replies to commands and menu actions are built into the plugin, in French; they cannot be changed through a file. They follow the Cobaltia style: a small-caps heading on a color gradient matching the message type, followed by details in gray.

Type Color Messages
Refusal Red ᴀᴄᴄᴇꜱ ʀᴇꜰᴜꜱᴇ (access denied), ᴄᴏᴍᴍᴀɴᴅᴇ ᴊᴏᴜᴇᴜʀ (players only), ᴀɴɴᴏɴᴄᴇ ɪɴᴛʀᴏᴜᴠᴀʙʟᴇ (unknown announcement), ᴄɪʙʟᴇ ɪɴᴛʀᴏᴜᴠᴀʙʟᴇ (unknown target), ʀᴏᴛᴀᴛɪᴏɴ ɪɴᴛʀᴏᴜᴠᴀʙʟᴇ (unknown rotation), ᴊꜱᴏɴ ɪɴᴠᴀʟɪᴅᴇ (invalid JSON)
Warning Yellow ᴘᴇʀꜱᴏɴɴᴇ (empty target, nothing was sent)
Success Green ᴀɴɴᴏɴᴄᴇ ᴇɴᴠᴏʏᴇᴇ (sent), ʀᴏᴛᴀᴛɪᴏɴ ᴀᴄᴛɪᴠᴇᴇ (rotation on), ᴀɴɴᴏɴᴄᴇꜱ ʀᴇᴄʜᴀʀɢᴇᴇꜱ (reloaded)
Information Cyan ʀᴏᴛᴀᴛɪᴏɴ ᴄᴏᴜᴘᴇᴇ (rotation off), ᴀɴɴᴏɴᴄᴇꜱ (syntax reminder)

Sample output:

ᴀɴɴᴏɴᴄᴇ ᴇɴᴠᴏʏᴇᴇ Rappel vote envoyée à 12 joueur(s) (tout le serveur).
ʀᴏᴛᴀᴛɪᴏɴ ᴀᴄᴛɪᴠᴇᴇ general repart, prochain envoi dans 10 min.
ᴊꜱᴏɴ ɪɴᴠᴀʟɪᴅᴇ 1 erreur(s), l'ancienne config reste en place :
• rotations[0].toutes : durée invalide « 5 min »