Skip to content

Форматирование

Модуль, форматирующий отправленные сообщения

🌍 Локализация

📂 Путь localizations → язык.yml → message.format

⚖️ По умолчанию

yml
format:
  tags:
    PING: "<fcolor:2><ping></fcolor>"
    TPS: "<fcolor:2><tps></fcolor>"
    ONLINE: "<fcolor:2><online></fcolor>"
    COORDS: "<fcolor:2><x> <y> <z></fcolor>"
    STATS: "<color:#ff7171><hp>♥</color> <color:#3de0d8><armor>🛡 <color:#e33059><attack>🗡 <color:#4eff52><exp>⏺ <color:#f0a01f><food>🍖"
    SKIN: "<image:\"<message>\"><u>👨 Скин</u></image>"
    ITEM: "<fcolor:2>[<message>]</fcolor>"
    URL: "<click:open_url:\"<message>\"><hover:show_text:\"<fcolor:2>Открыть ссылку <br><u><message>\"><fcolor:2><u>🗗 Ссылка</u></fcolor:2></hover></click>"
    IMAGE: "<image:\"<message>\"><u>🖃 Картинка</u></image>"
yml
format:
  tags:
    PING: "<fcolor:2><ping></fcolor>"
    TPS: "<fcolor:2><tps></fcolor>"
    ONLINE: "<fcolor:2><online></fcolor>"
    COORDS: "<fcolor:2><x> <y> <z></fcolor>"
    STATS: "<color:#ff7171><hp>♥</color> <color:#3de0d8><armor>🛡 <color:#e33059><attack>🗡 <color:#4eff52><exp>⏺ <color:#f0a01f><food>🍖"
    SKIN: "<image:\"<message>\"><u>👨 Skin</u></image>"
    ITEM: "<fcolor:2>[<message>]</fcolor>"
    URL: "<click:open_url:\"<message>\"><hover:show_text:\"<fcolor:2>Open url <br><u><message>\"><fcolor:2><u>🗗 Url</u></fcolor:2></hover></click>"
    IMAGE: "<image:\"<message>\"><u>🖃 Image</u></image>"

url

Сообщение, если это ссылка url

IMAGE

Сообщение, если это изображение image

PING

Сообщение, если это пинг ping

TPS

Сообщение, если это ТПС tps

ONLINE

Сообщение, если это онлайн online

COORDS

Сообщение, если это координаты coords

STATS

Сообщение, если это статистика stats

SKIN

Сообщение, если это скин skin

ITEM

Сообщение, если это предмет item

⚙️ Настройка

📂 Путь message.yml → format

⚖️ По умолчанию

yml
format:
  enable: true
  tags:
    PING:
      enable: true
      trigger: "%ping%"
    TPS:
      enable: true
      trigger: "%tps%"
    ONLINE:
      enable: true
      trigger: "%online%"
    COORDS:
      enable: true
      trigger: "%coords%"
    STATS:
      enable: true
      trigger: "%stats%"
    SKIN:
      enable: true
      trigger: "%skin%"
    ITEM:
      enable: true
      trigger: "%item%"
    URL:
      enable: true
      trigger: "(?<!:\")((https?|ftp|gopher|telnet|file):((//)|(\\\\))+[\\w:#@%/;$()~_?+-=\\\\.&]*)"
    IMAGE:
      enable: true
      trigger: "(?<!:\")((https?|ftp|gopher|telnet|file):\\/\\/(?:i\\.imgur\\.com|media\\.discordapp\\.net)\\/[\\w:#@%/;$()~_?+-=\\\\.&]*)"
    SPOILER:
      enable: true
      trigger: "\\Q||\\E"
    BOLD:
      enable: true
      trigger: "\\Q**\\E"
    ITALIC:
      enable: true
      trigger: "\\Q##\\E"
    UNDERLINE:
      enable: true
      trigger: "\\Q__\\E"
    OBFUSCATED:
      enable: true
      trigger: "\\Q??\\E"
    STRIKETHROUGH:
      enable: true
      trigger: "\\Q~~\\E"
    HOVER:
      enable: true
      trigger: null
    CLICK:
      enable: true
      trigger: null
    COLOR:
      enable: true
      trigger: null
    KEYBIND:
      enable: true
      trigger: null
    TRANSLATABLE:
      enable: true
      trigger: null
    TRANSLATABLE_FALLBACK:
      enable: true
      trigger: null
    INSERTION:
      enable: true
      trigger: null
    FONT:
      enable: true
      trigger: null
    DECORATION:
      enable: true
      trigger: null
    GRADIENT:
      enable: true
      trigger: null
    RAINBOW:
      enable: true
      trigger: null
    RESET:
      enable: true
      trigger: null
    NEWLINE:
      enable: true
      trigger: null
    TRANSITION:
      enable: true
      trigger: null
    SELECTOR:
      enable: true
      trigger: null
    SCORE:
      enable: true
      trigger: null
    NBT:
      enable: true
      trigger: null
    PRIDE:
      enable: true
      trigger: null
    SHADOW_COLOR:
      enable: true
      trigger: null

enable

Включает или выключает работоспособность модуля

PING

ping

TPS

tps

ONLINE

online

COORDS

coords

STATS

stats

SKIN

skin

ITEM

item

URL

url

IMAGE

image

SPOILER

spoiler

BOLD

bold

ITALIC

italic

UNDERLINE

underline

OBFUSCATED

obfuscated

STRIKETHROUGH

strikethrough

Остальные это Kyori теги

ТегИспользованиеОписание
<hover>HoverТекст при наведении
<click>ClickДействие при нажатии
<color>ColorЦвет
<keybind>KeybindНастройка клавиш для сообщения
<translatable>TranslatableСообщение с использованием локали игрока
<translatable_fallback>TranslatableСообщение с использованием локали игрока
<insertion>InsertionВставка текста в чат с помощью ШИФТ
<font>FontИзменение шрифта текста
<decoration>DecorationСтандартные украшения майнкрафта bold, italic, underlined, strikethrough, obfuscated
<gradient>GradientГрадиентный цвет текста
<rainbow>RainbowРадужный цвет текста
<reset>ResetСброс всех тегов и декораций
<newline>NewlineПереход на новую строку, замена \n
<transition>TransitionПереход между двумя цветами
<selector>SelectorСелектор мобов
<score>ScoreЗначение у команды (scoreboard)
<nbt>NBTВставка NBT компонента

🔐 Права

📂 Путь permission.yml → message.format

⚖️ По умолчанию

yml
format:
  name: "flectonepulse.module.message.format"
  type: TRUE
  all:
    name: "flectonepulse.module.message.format.all"
    type: OP
  tags:
    PING:
      name: "flectonepulse.module.message.format.ping"
      type: TRUE
    TPS:
      name: "flectonepulse.module.message.format.tps"
      type: TRUE
    ONLINE:
      name: "flectonepulse.module.message.format.online"
      type: TRUE
    COORDS:
      name: "flectonepulse.module.message.format.coords"
      type: TRUE
    STATS:
      name: "flectonepulse.module.message.format.stats"
      type: TRUE
    SKIN:
      name: "flectonepulse.module.message.format.skin"
      type: TRUE
    ITEM:
      name: "flectonepulse.module.message.format.item"
      type: TRUE
    URL:
      name: "flectonepulse.module.message.format.url"
      type: TRUE
    IMAGE:
      name: "flectonepulse.module.message.format.image"
      type: TRUE
    SPOILER:
      name: "flectonepulse.module.message.format.spoiler"
      type: TRUE
    BOLD:
      name: "flectonepulse.module.message.format.bold"
      type: TRUE
    ITALIC:
      name: "flectonepulse.module.message.format.italic"
      type: TRUE
    UNDERLINE:
      name: "flectonepulse.module.message.format.underline"
      type: TRUE
    OBFUSCATED:
      name: "flectonepulse.module.message.format.obfuscated"
      type: TRUE
    STRIKETHROUGH:
      name: "flectonepulse.module.message.format.strikethrough"
      type: TRUE
    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

Название права

type

Вид права

ВидОбъяснение
TRUEДоступно для любого игрока
FALSEДоступно если выдано отдельно (например с помощью LuckPerms)
OPДоступно для операторов сервера
NOT_OPДоступно если выдано отдельно (например с помощью LuckPerms)

all

Право для использования всех возможных форматирований

tags

Список тегов и их прав для использования