修复:语言文件 YAML 与 PLAYER_JOINED 事件名 (26.9.2)
This commit is contained in:
1 parent
b8c865d198
commit
c89837c01a
6 files changed
+74
-67
No files matched your search
@@ -2,6 +2,12 @@
|
||||
|
||||
本文件记录 Iridium 的重要变更。
|
||||
|
||||
## [26.9.2] - 2026-09-13
|
||||
|
||||
### Fixed
|
||||
- 语言文件 YAML 解析失败(值中含 `:` 未加引号导致 `mapping values are not allowed`)
|
||||
- 进服事件名错误:`PLAYER_JOIN` → `PLAYER_JOINED`(否则插件 on_load 失败)
|
||||
|
||||
## [26.9.1] - 2026-09-13
|
||||
|
||||
### Added
|
||||
|
||||
@@ -4,7 +4,7 @@ MCDReforged 插件:物品展示 / 戴头 / 获取头颅 / 游戏内计算器 /
|
||||
|
||||
| | |
|
||||
|---|---|
|
||||
| 版本 | **26.9.1** |
|
||||
| 版本 | **26.9.2** |
|
||||
| 作者 | 云镜之端/SKYMirror |
|
||||
| 许可 | 保留所有权益(All Rights Reserved) |
|
||||
| 前置 | MCDReforged `>= 2.6.0` |
|
||||
|
||||
+2
-1
@@ -239,4 +239,5 @@ def on_player_joined(server: PluginServerInterface, player: str, info: Info) ->
|
||||
|
||||
|
||||
def register(server: PluginServerInterface) -> None:
|
||||
server.register_event_listener(MCDRPluginEvents.PLAYER_JOIN, on_player_joined)
|
||||
# MCDR event name is PLAYER_JOINED (not PLAYER_JOIN)
|
||||
server.register_event_listener(MCDRPluginEvents.PLAYER_JOINED, on_player_joined)
|
||||
+32
-32
@@ -1,32 +1,32 @@
|
||||
iridium.loaded: Iridium loaded
|
||||
iridium.unloaded: Iridium unloaded
|
||||
iridium.version_mode: Version detection mode: {0}
|
||||
iridium.bad_force_version: Invalid force_version in config: {0}
|
||||
iridium.version_unknown: Unable to detect Minecraft version. Wait for VersionDetector, or set force_version in config
|
||||
iridium.player_only: This command can only be used by a player in-game
|
||||
iridium.required_permission: Insufficient permission, requires level {0}
|
||||
iridium.on_cooldown: Cooldown, wait {0}s
|
||||
iridium.hand_is_empty: No usable item in hand
|
||||
iridium.share_help: Show the item in your main hand (hover to view)
|
||||
iridium.share_done: Item shared to chat
|
||||
iridium.share_unsupported_version: Version {0} cannot read held item (needs Minecraft 1.8+)
|
||||
iridium.share_timeout: Timed out reading held item, try again later
|
||||
iridium.click_copy: click to copy data
|
||||
iridium.click_suggest: click for data command
|
||||
iridium.share_showing: is showing
|
||||
iridium.hat_help: Swap the item in your hand with your head slot
|
||||
iridium.hat_success: Swapped hand item with head equipment
|
||||
iridium.hat_unsupported_version: Version {0} does not support !!hat (needs Minecraft 1.8+)
|
||||
iridium.hat_need_rcon: !!hat requires RCON enabled to read and swap item data
|
||||
iridium.hat_query_failed: Failed to query player item data
|
||||
iridium.head_help: Get one player head (optional player name, cooldown {0}s)
|
||||
iridium.head_help_short: Get one player head (optional player name)
|
||||
iridium.head_success: You received a head of {0}
|
||||
iridium.calc_help: Evaluate an expression, e.g. !!c 1+2*(3-1)
|
||||
iridium.calc_usage: Usage: !!c <expression>, e.g. !!c 1+2*(3-1)
|
||||
iridium.calc_error: Cannot calculate {0}: {1}
|
||||
iridium.calc_div_zero: Division by zero
|
||||
iridium.join_tip_header: Iridium is enabled. Available commands: (click to fill chat)
|
||||
iridium.join_tip_click: click to fill chat
|
||||
iridium.motd_header: Server Info
|
||||
iridium.motd_days: Day {0} since server start
|
||||
iridium.loaded: 'Iridium loaded'
|
||||
iridium.unloaded: 'Iridium unloaded'
|
||||
iridium.version_mode: 'Version detection mode: {0}'
|
||||
iridium.bad_force_version: 'Invalid force_version in config: {0}'
|
||||
iridium.version_unknown: 'Unable to detect Minecraft version. Wait for VersionDetector, or set force_version in config'
|
||||
iridium.player_only: 'This command can only be used by a player in-game'
|
||||
iridium.required_permission: 'Insufficient permission, requires level {0}'
|
||||
iridium.on_cooldown: 'Cooldown, wait {0}s'
|
||||
iridium.hand_is_empty: 'No usable item in hand'
|
||||
iridium.share_help: 'Show the item in your main hand (hover to view)'
|
||||
iridium.share_done: 'Item shared to chat'
|
||||
iridium.share_unsupported_version: 'Version {0} cannot read held item (needs Minecraft 1.8+)'
|
||||
iridium.share_timeout: 'Timed out reading held item, try again later'
|
||||
iridium.click_copy: 'click to copy data'
|
||||
iridium.click_suggest: 'click for data command'
|
||||
iridium.share_showing: 'is showing'
|
||||
iridium.hat_help: 'Swap the item in your hand with your head slot'
|
||||
iridium.hat_success: 'Swapped hand item with head equipment'
|
||||
iridium.hat_unsupported_version: 'Version {0} does not support !!hat (needs Minecraft 1.8+)'
|
||||
iridium.hat_need_rcon: '!!hat requires RCON enabled to read and swap item data'
|
||||
iridium.hat_query_failed: 'Failed to query player item data'
|
||||
iridium.head_help: 'Get one player head (optional player name, cooldown {0}s)'
|
||||
iridium.head_help_short: 'Get one player head (optional player name)'
|
||||
iridium.head_success: 'You received a head of {0}'
|
||||
iridium.calc_help: 'Evaluate an expression, e.g. !!c 1+2*(3-1)'
|
||||
iridium.calc_usage: 'Usage: !!c <expression>, e.g. !!c 1+2*(3-1)'
|
||||
iridium.calc_error: 'Cannot calculate {0}: {1}'
|
||||
iridium.calc_div_zero: 'Division by zero'
|
||||
iridium.join_tip_header: 'Iridium is enabled. Available commands: (click to fill chat)'
|
||||
iridium.join_tip_click: 'click to fill chat'
|
||||
iridium.motd_header: 'Server Info'
|
||||
iridium.motd_days: 'Day {0} since server start'
|
||||
+32
-32
@@ -1,32 +1,32 @@
|
||||
iridium.loaded: Iridium 已加载
|
||||
iridium.unloaded: Iridium 已卸载
|
||||
iridium.version_mode: 版本检测模式: {0}
|
||||
iridium.bad_force_version: 配置 force_version 无效: {0}
|
||||
iridium.version_unknown: 无法检测 Minecraft 版本,请等待服务器完成 VersionDetector,或在配置中设置 force_version
|
||||
iridium.player_only: 该命令只能由玩家在游戏内使用
|
||||
iridium.required_permission: 权限不足,需要权限等级 {0}
|
||||
iridium.on_cooldown: 冷却中,请再等待 {0} 秒
|
||||
iridium.hand_is_empty: 手上没有可处理的物品
|
||||
iridium.share_help: 展示手上物品的完整信息(悬停查看)
|
||||
iridium.share_done: 已在聊天栏展示物品
|
||||
iridium.share_unsupported_version: 当前版本 {0} 无法读取手持物品(需要 Minecraft 1.8+)
|
||||
iridium.share_timeout: 读取手持物品超时,请稍后再试
|
||||
iridium.click_copy: 点击复制完整数据
|
||||
iridium.click_suggest: 点击获取完整数据命令
|
||||
iridium.share_showing: 正在展示
|
||||
iridium.hat_help: 将手上物品与头部装备互换
|
||||
iridium.hat_success: 已交换手上物品与头部装备
|
||||
iridium.hat_unsupported_version: 当前版本 {0} 不支持 !!hat(需要 Minecraft 1.8+)
|
||||
iridium.hat_need_rcon: !!hat 需要启用 RCON 才能读取并交换物品数据
|
||||
iridium.hat_query_failed: 读取玩家物品数据失败
|
||||
iridium.head_help: 获取一个玩家头颅(可指定玩家名,冷却 {0} 秒)
|
||||
iridium.head_help_short: 获取一个玩家头颅(可指定玩家名)
|
||||
iridium.head_success: 已给予你 {0} 的头颅
|
||||
iridium.calc_help: 计算表达式,例如 !!c 1+2*(3-1)
|
||||
iridium.calc_usage: 用法: !!c <表达式>,例如 !!c 1+2*(3-1)
|
||||
iridium.calc_error: 无法计算 {0}: {1}
|
||||
iridium.calc_div_zero: 除数不能为 0
|
||||
iridium.join_tip_header: 本服已启用 Iridium,可用命令:(点击命令可填入聊天框)
|
||||
iridium.join_tip_click: 点击填入聊天栏
|
||||
iridium.motd_header: 服务器信息
|
||||
iridium.motd_days: 开服第 {0} 天
|
||||
iridium.loaded: 'Iridium 已加载'
|
||||
iridium.unloaded: 'Iridium 已卸载'
|
||||
iridium.version_mode: '版本检测模式: {0}'
|
||||
iridium.bad_force_version: '配置 force_version 无效: {0}'
|
||||
iridium.version_unknown: '无法检测 Minecraft 版本,请等待服务器完成 VersionDetector,或在配置中设置 force_version'
|
||||
iridium.player_only: '该命令只能由玩家在游戏内使用'
|
||||
iridium.required_permission: '权限不足,需要权限等级 {0}'
|
||||
iridium.on_cooldown: '冷却中,请再等待 {0} 秒'
|
||||
iridium.hand_is_empty: '手上没有可处理的物品'
|
||||
iridium.share_help: '展示手上物品的完整信息(悬停查看)'
|
||||
iridium.share_done: '已在聊天栏展示物品'
|
||||
iridium.share_unsupported_version: '当前版本 {0} 无法读取手持物品(需要 Minecraft 1.8+)'
|
||||
iridium.share_timeout: '读取手持物品超时,请稍后再试'
|
||||
iridium.click_copy: '点击复制完整数据'
|
||||
iridium.click_suggest: '点击获取完整数据命令'
|
||||
iridium.share_showing: '正在展示'
|
||||
iridium.hat_help: '将手上物品与头部装备互换'
|
||||
iridium.hat_success: '已交换手上物品与头部装备'
|
||||
iridium.hat_unsupported_version: '当前版本 {0} 不支持 !!hat(需要 Minecraft 1.8+)'
|
||||
iridium.hat_need_rcon: '!!hat 需要启用 RCON 才能读取并交换物品数据'
|
||||
iridium.hat_query_failed: '读取玩家物品数据失败'
|
||||
iridium.head_help: '获取一个玩家头颅(可指定玩家名,冷却 {0} 秒)'
|
||||
iridium.head_help_short: '获取一个玩家头颅(可指定玩家名)'
|
||||
iridium.head_success: '已给予你 {0} 的头颅'
|
||||
iridium.calc_help: '计算表达式,例如 !!c 1+2*(3-1)'
|
||||
iridium.calc_usage: '用法: !!c <表达式>,例如 !!c 1+2*(3-1)'
|
||||
iridium.calc_error: '无法计算 {0}: {1}'
|
||||
iridium.calc_div_zero: '除数不能为 0'
|
||||
iridium.join_tip_header: '本服已启用 Iridium,可用命令:(点击命令可填入聊天框)'
|
||||
iridium.join_tip_click: '点击填入聊天栏'
|
||||
iridium.motd_header: '服务器信息'
|
||||
iridium.motd_days: '开服第 {0} 天'
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"id": "iridium",
|
||||
"version": "26.9.1",
|
||||
"version": "26.9.2",
|
||||
"name": "Iridium",
|
||||
"description": {
|
||||
"zh_cn": "物品展示 / 戴头 / 获取头颅 / 游戏内计算器 / 进服 MOTD",
|
||||
|
||||
Reference in new issue
Block a user