Форматирование
Модуль, форматирующий отправленные сообщения
🌍 Локализация
📂 Путь 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
Сообщение, если это ссылка
IMAGE
Сообщение, если это изображение
PING
Сообщение, если это пинг
TPS
Сообщение, если это ТПС
ONLINE
Сообщение, если это онлайн
COORDS
Сообщение, если это координаты
STATS
Сообщение, если это статистика
SKIN
Сообщение, если это скин
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
TPS
ONLINE
COORDS
STATS
SKIN
ITEM
URL
IMAGE
SPOILER
BOLD
ITALIC
UNDERLINE
OBFUSCATED
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
Список тегов и их прав для использования