useTranslatedNames

用于翻译 CoreProtect 物品名称消息的插件

Редакция NLZONE · 2 мин чтения · 1 просмотр
useTranslatedNames
Скачать useTranslatedNames1.19 – 1.21.4 · с официальной страницы: modrinth.com
Перейти к загрузке

Что это

用于翻译 CoreProtect 物品名称消息的插件

  • Тип: мод
  • Загрузчик: folia, paper, purpur, spigot
  • Версии Minecraft: 1.19 – 1.21.4
  • Скачиваний на Modrinth: 7 263

Подробно

useTranslatedNames JSON string replacement plugin with built-in translation name fetch function, which can be used for message replacement and translation of CoreProtect and other plugins.

download: https://modrinth.com/plugin/usetranslatednames

Functions and commands - /utn Show plugin information and statistics - /utn json - Test JSON string - /utn reload - Reload configuration - /utn debug [Level] - debug mode

The plug-in will capture the corresponding server message according to the configuration, then replace the item name in it and resend the message. For details, please refer to the "Configuration" section.

更新插件后, 需要手动修改配置版本号, 才能使用一些具有较大改动的功能 更新发布页面会显示版本号和新功能示例 configVersion: 4

dev: # 选择解析消息的方式, 修改这部分以调整兼容性 # ChatComponents = 支持 1.20.4 和 ProtocolLib 5.2.0 # GetStrings = 支持 1.20.2 及以下版本 parser: ChatComponents # 是否对输入的 JSON 进行序列化, 修改它可能影响现有的配置 # CreatePacket = 使用 protocolLib 创建新数据包再解析, 这没有意义 # ComponentSerializer = 这会使 JSON 内部的顺序发生变化, 并可能丢失部分原版消息 # NONE = 不进行序列化 serializedInput: NONE # 将玩家消息转换为系统消息 # Convert = 转换消息并进行替换 # ConvertBypass = 转换消息并绕过替换 # NONE = 禁用此功能 convertPlayerMessages: NONE

# 翻译实体名 :: 24.03/m 前 #苦力怕 破坏 草方块 - inspectLength: [240, 1024] get: '\{"text":"#([a-z0-9]+)§f([^"]+)","color":"#31B0E8"\}' set: >- {"text":"§8#"}, {"translate":"$1:TranslatedName","color":"#31b0e8"}, {"text":"§f$2","color":"#31B0E8"} inherit: LINK

# 翻译物品 :: 24.03/m 前 #苦力怕 破坏 草方块 - inspectLength: [240, 1024] get: '\{"text":"(?:§m)?([a-z0-9]+)(?:§f.{0,3})?"(?:,"strikethrough":true)?,"color":"#31B0E8"\}' set: >- {"extra":[ {"translate":"$1:TranslatedName"}, {"text":" §8$1", "hoverEvent":{ "action":"showtext", "contents":{"text":"§7点击复制ID\n§8minecraft:$1"} }, "clickEvent":{"action":"copytoclipboard","value":"$1"} } ],"color":"#31b0e8","text":""}

# [示例] 所有可用配置 # [可选] 仅对拥有该权限的玩家处理这条消息, 默认所有玩家 - permission: 'minecraft.command' # [必选] 检查消息长度是否在此区间内 # [50, 64] = 大于等于 50 且小于等于 64 # [64] = 等于 64 inspectLength: [50, 64] # [必选] 使用正则表达式匹配 get: '^\{"text":"","extra":\["Missing required argument (\d+)"\]\}$' # [必选] 将消息替换为 # $1 = 正则匹配到的变量 1, 也可以是 $2 (第 2 个变量)... # $1:ItemType = 将 $1 用于获取物品类型, 提供给 JSON hoverEvent 使用的物品类型 showentity, showitem(block) # $1:TranslatedName = 将 $1 用于名称翻译, 返回与语言路径对应的 KEY, 例如 entity.minecraft.allay # $1:Words:组名 = 将 $1 用

Как установить

Скачайте файл на официальной странице ниже и положите его в папку mods (для модов) или plugins (для плагинов) вашего сервера или клиента. Для модов нужен совместимый загрузчик. Версия должна совпадать с версией Minecraft.

Текст подготовлен автоматически из описания на Modrinth и ждёт проверки редакцией.

Редакция NLZONE

Пишем о серверах, модах и играх, в которые играем сами. Нашли ошибку — напишите нам, исправим.

Комментарии 0

Комментарии к этому материалу отключены.

Читайте также