9
0
mirror of https://github.com/Xiao-MoMi/craft-engine.git synced 2026-01-04 15:41:38 +00:00

添加指令切换语言

This commit is contained in:
XiaoMoMi
2025-10-17 23:59:43 +08:00
parent b0b7861068
commit f0dd5120e3
12 changed files with 157 additions and 45 deletions

View File

@@ -23,12 +23,6 @@ upload:
- /craftengine upload
- /ce upload
locale:
enable: true
permission: ce.command.player.locale
usage:
- /locale
send_resource_pack:
enable: true
permission: ce.command.admin.send_resource_pack
@@ -117,6 +111,18 @@ list_resource:
- /craftengine resource list
- /ce resource list
set_locale:
enable: true
permission: ce.command.admin.set_locale
usage:
- /ce feature locale set
unset_locale:
enable: true
permission: ce.command.admin.unset_locale
usage:
- /ce feature locale unset
# Debug commands
debug_set_block:
enable: true

View File

@@ -54,8 +54,8 @@ command.search_usage.not_found: "<red>No usage found for this item</red>"
command.search_recipe.no_item: "<red>Please hold an item before running this command</red>"
command.search_usage.no_item: "<red>Please hold an item before running this command</red>"
command.totem_animation.failure.not_totem: "<red>Item '<arg:0>' is not minecraft:totem_of_undying</red>"
commands.totem_animation.success.single: "<white>Played totem animation <arg:0> to <arg:1></white>"
commands.totem_animation.success.multiple: "<white>Played totem animation <arg:0> to <arg:1> players</white>"
command.totem_animation.success.single: "<white>Played totem animation <arg:0> to <arg:1></white>"
command.totem_animation.success.multiple: "<white>Played totem animation <arg:0> to <arg:1> players</white>"
command.resource.enable.success: "<white>Enabled resource <arg:0>. Run <click:run_command:/ce reload all><u>/ce reload all</u></click> to apply changes</white>"
command.resource.enable.failure.unknown: "<red>Unknown resource <arg:0></red>"
command.resource.disable.success: "<white>Disabled resource <arg:0>. Run <click:run_command:/ce reload all><u>/ce reload all</u></click> to apply changes</white>"
@@ -65,6 +65,9 @@ command.upload.failure.not_supported: "<red>Current hosting method '<arg:0>' doe
command.upload.on_progress: "<white>Started uploading progress. Check the console for more information.</white>"
command.send_resource_pack.success.single: "<white>Sent resource pack to <arg:0>.</white>"
command.send_resource_pack.success.multiple: "<white>Send resource packs to <arg:0> players.</white>"
command.locale.set.failure: "<red>Invalid locale format: <arg:0></red>"
command.locale.set.success: "<white>Updated selected locale to <arg:0> for <arg:1></white>"
command.locale.unset.success: "<white>Cleared selected locale for <arg:0></white>"
warning.network.resource_pack.unverified_uuid: "<yellow>Player <arg:0> is attempting to request a resource pack using a UUID (<arg:1>) that is not authenticated by the server.</yellow>"
warning.config.pack.duplicated_files: "<red>Duplicated files Found. Please resolve them through config.yml 'resource-pack.duplicated-files-handler' section.</red>"
warning.config.yaml.duplicated_key: "<red>Issue found in file <arg:0> - Found duplicated key '<arg:1>' at line <arg:2>, this might cause unexpected results.</red>"

View File

@@ -54,8 +54,8 @@ command.search_usage.not_found: "<red>找不到此物品的用途</red>"
command.search_recipe.no_item: "<red>请手持物品后再执行此命令</red>"
command.search_usage.no_item: "<red>请手持物品后再执行此命令</red>"
command.totem_animation.failure.not_totem: "<red>'<arg:0>' 不是 totem_of_undying 类型</red>"
commands.totem_animation.success.single: "<white>已将图腾动画<arg:0>播放给<arg:1></white>"
commands.totem_animation.success.multiple: "<white>已将图腾动画<arg:0>播放给<arg:1>名玩家</white>"
command.totem_animation.success.single: "<white>已将图腾动画<arg:0>播放给<arg:1></white>"
command.totem_animation.success.multiple: "<white>已将图腾动画<arg:0>播放给<arg:1>名玩家</white>"
command.resource.enable.success: "<white>已启用 <arg:0>. 执行 <click:run_command:/ce reload all><u>/ce reload all</u></click> 以应用更改</white>"
command.resource.enable.failure.unknown: "<red>未知资源 <arg:0></red>"
command.resource.disable.success: "<white>已禁用 <arg:0>. 执行 <click:run_command:/ce reload all><u>/ce reload all</u></click> 以应用更改</white>"