-
-
Notifications
You must be signed in to change notification settings - Fork 2
Formatting Toolkit
CroaBeast edited this page Nov 8, 2025
·
1 revision
SIR gives you fine-grained control over how text appears in chat, announcements, Discord, and private messages. This page summarises the tools available across the configuration files.
-
Prefix management:
-
values.lang-prefix-keytriggers the main prefix anywhere it appears (default<P>). -
values.lang-prefixis the formatted prefix injected into messages (default&e&lSIR &8>&7).
-
-
Centred text: Prefix messages with
values.center-prefix(default<C>) to centre them in chat. -
Line breaks: Use
values.line-separator(default<n>) to create multi-line outputs, including titles and action bars. -
Coloured console: Toggle
options.colored-consoleif your terminal supports ANSI colours. -
Message type prefixing: Enable
options.show-prefixto see[CHAT],[ACTION-BAR], etc., in the console.
-
<G:#FF0000:#0000FF>applies a gradient between two hex colours. -
<R:1>cycles through rainbow colours; adjust the number to change the step. - These tags work anywhere SIR parses messages: chat, announcements, MOTDs, join messages, and Discord outputs.
Many YAML entries accept hover and click actions:
-
Hover lists: Supply an array of lines under
hover:(e.g., channel definitions, mentions, tags). -
Click actions: Use
SUGGEST:,RUN:, orURL:prefixes insideclick-actionor mentionclickfields. -
Mentions: Configure sender/receiver hover and sound feedback separately in
modules/chat/mentions.yml. -
Announcements: Combine chat lines, action bars (
[ACTION-BAR]), and titles ([TITLE] main<n>subtitle).
- Join, first-join, quit, and announcement entries can define a
sound:value using vanilla sound keys. - Mentions support distinct sounds for the sender and receiver.
- Discord messages can include embed colours to visually classify events.
-
Tags (
modules/chat/tags.yml): Create display prefixes with hover descriptions. Attach permissions, priorities, and groups. -
Emojis (
modules/chat/emojis.yml): Replace keys such as:heart:with coloured text or Unicode. Checks include regex matching, word boundaries, case sensitivity, and permission/group requirements.
- Cooldowns reference
{time}to communicate remaining wait time. - Moderation modules provide
{player},{type},{message}placeholders in log and notification formats. - Mention messages can include
{sender}and{receiver}for personalised notifications.
Inside modules/hook/discord.yml you can:
- Set
embed.colorusing named colours or hex values. - Configure
author,thumbnail, andtitlefields with placeholders like{player},{UUID},{prefix},{suffix}. - Toggle
timeStampto append the current time automatically.
- Announcements and other features that use Takion can trigger animated boss bars and layered titles. Use
[TITLE]lines with<n>separators and let the module handle delivery.
-
Validate colour codes: Hex colours require braces (
{#C0C0C0}) in chat formats;&#FFFFFFalso works in announcements. -
Escape quotes where needed: Use
"inside strings defined with double quotes. - Stay consistent: Keep similar modules (e.g., join messages) aligned in style for a cohesive presentation.
- Test in-game: Gradients and centred text can look different depending on font width—preview before finalising.
With these tools you can build memorable experiences, from immersive story events to polished server announcements—all without leaving YAML.