Skip to content

Format

The module responsible for formatting sent messages

⚙️ Setting

📂 Path message.yml → format

⚖️ Default

yml
format:
  enable: true
  convert_legacy_color: true
  adventure_tags:
  - "HOVER"
  - "CLICK"
  - "COLOR"
  - "KEYBIND"
  - "TRANSLATABLE"
  - "TRANSLATABLE_FALLBACK"
  - "INSERTION"
  - "FONT"
  - "DECORATION"
  - "GRADIENT"
  - "RAINBOW"
  - "RESET"
  - "NEWLINE"
  - "TRANSITION"
  - "SELECTOR"
  - "SCORE"
  - "NBT"
  - "PRIDE"
  - "SHADOW_COLOR"

enable

Enables or disables the functionality of the module

convert_legacy_color

Enables formatting of legacy colors

Input ColorConverted to
&0-&9, &a-&f<black>, <dark_blue> ... <white>
&l/&m/&n/&o/&k/&r<b> / <st> / <u> / <i> / <obf> / <reset>
&#rrggbb, #rrggbb, &x&r&r&g&g&b&b, <##rrggbb><#rrggbb>
MiniMessage Tags<color:#rrggbb>, <rainbow>, <click:...>, <font>, etc.

adventure_tags

These are Kyori tags that may appear in messages.

TagUsageDescription
<hover>HoverText displayed when hovering over
<click>ClickAction triggered when clicked
<color>ColorColor
<keybind>KeybindKey setup for the message
<translatable>TranslatableMessage using the player's locale
<translatable_fallback>TranslatableMessage with fallback translation using the player's locale
<insertion>InsertionText insertion in chat with SHIFT
<font>FontChange font for text
<decoration>DecorationStandard Minecraft decorations bold, italic, underlined, strikethrough, obfuscated
<gradient>GradientGradient text color
<rainbow>RainbowRainbow-colored text
<reset>ResetReset all tags and decorations
<newline>NewlineNewline, replaces \n
<transition>TransitionTransition between two colors
<selector>SelectorMob selector
<score>ScoreTeam score (scoreboard)
<nbt>NBTInsertion of NBT component
.........

🔐 Permissions

📂 Path permission.yml → message.format

⚖️ Default

yml
format:
  name: "flectonepulse.module.message.format"
  type: "TRUE"
  legacy_colors:
    name: "flectonepulse.module.message.format.legacy_color"
    type: "OP"
  adventure_tags:
    HOVER:
      name: "flectonepulse.module.message.format.hover"
      type: "OP"
    CLICK:
      name: "flectonepulse.module.message.format.click"
      type: "OP"
    COLOR:
      name: "flectonepulse.module.message.format.color"
      type: "OP"
    KEYBIND:
      name: "flectonepulse.module.message.format.keybind"
      type: "OP"
    TRANSLATABLE:
      name: "flectonepulse.module.message.format.translatable"
      type: "OP"
    TRANSLATABLE_FALLBACK:
      name: "flectonepulse.module.message.format.translatable_fallback"
      type: "OP"
    INSERTION:
      name: "flectonepulse.module.message.format.insertion"
      type: "OP"
    FONT:
      name: "flectonepulse.module.message.format.font"
      type: "OP"
    DECORATION:
      name: "flectonepulse.module.message.format.decoration"
      type: "TRUE"
    GRADIENT:
      name: "flectonepulse.module.message.format.gradient"
      type: "OP"
    RAINBOW:
      name: "flectonepulse.module.message.format.rainbow"
      type: "OP"
    RESET:
      name: "flectonepulse.module.message.format.reset"
      type: "OP"
    NEWLINE:
      name: "flectonepulse.module.message.format.newline"
      type: "OP"
    TRANSITION:
      name: "flectonepulse.module.message.format.transition"
      type: "OP"
    SELECTOR:
      name: "flectonepulse.module.message.format.selector"
      type: "OP"
    SCORE:
      name: "flectonepulse.module.message.format.score"
      type: "OP"
    NBT:
      name: "flectonepulse.module.message.format.nbt"
      type: "OP"
    PRIDE:
      name: "flectonepulse.module.message.format.pride"
      type: "OP"
    SHADOW_COLOR:
      name: "flectonepulse.module.message.format.shadow_color"
      type: "OP"

name

Permission name

type

Permission type

TypeExplanation
TRUEAvailable to any player
FALSENot available to anyone, must be granted separately (e.g., using LuckPerms)
OPAvailable to server operators
NOT_OPAvailable to not server operators

legacy_colors

This allows player to use legacy colors in their messages

Input ColorConverted to
&0-&9, &a-&f<black>, <dark_blue> ... <white>
&l/&m/&n/&o/&k/&r<b> / <st> / <u> / <i> / <obf> / <reset>
&#rrggbb, #rrggbb, &x&r&r&g&g&b&b, <##rrggbb><#rrggbb>
MiniMessage Tags<color:#rrggbb>, <rainbow>, <click:...>, <font>, etc.

NOTE

If you need player's chat colors to be formatted, use flectonepulse.module.message.format.color

adventure_tags

List of tags and their respective permissions