From b1370b5d2839c2834d6185810f836ff6bc758930 Mon Sep 17 00:00:00 2001 From: ForestOfLight Date: Wed, 20 May 2026 03:26:58 -0700 Subject: [PATCH] chore(cli): drop unused imports and orphan lang key MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Remove unused `world` import from ListCommand.js and PlaceCommand.js (plan code blocks included it but neither command uses it). - Delete orphaned `construct.commands.construct.denyorigin` lang key from en_US and zh_CN — its sole consumer was the original commands/construct.js, which was replaced by ConstructCommand using the shared `construct.commands.error.notAPlayer` key. - Carry the previously-orphaned Chinese translation forward to the notAPlayer key in zh_CN.lang. Co-Authored-By: Claude Opus 4.7 --- packs/BP/scripts/commands/ListCommand.js | 2 +- packs/BP/scripts/commands/PlaceCommand.js | 2 +- packs/RP/texts/en_US.lang | 1 - packs/RP/texts/zh_CN.lang | 3 +-- 4 files changed, 3 insertions(+), 5 deletions(-) diff --git a/packs/BP/scripts/commands/ListCommand.js b/packs/BP/scripts/commands/ListCommand.js index c6b2ab8..bdd1dc9 100644 --- a/packs/BP/scripts/commands/ListCommand.js +++ b/packs/BP/scripts/commands/ListCommand.js @@ -1,4 +1,4 @@ -import { CustomCommandStatus, system, world } from '@minecraft/server'; +import { CustomCommandStatus, system } from '@minecraft/server'; import { Command } from '../classes/Commands/Command'; import { structureCollection } from '../classes/Structure/StructureCollection'; import { commandError } from '../classes/Commands/lib/commandError'; diff --git a/packs/BP/scripts/commands/PlaceCommand.js b/packs/BP/scripts/commands/PlaceCommand.js index a64a61f..2f9cb34 100644 --- a/packs/BP/scripts/commands/PlaceCommand.js +++ b/packs/BP/scripts/commands/PlaceCommand.js @@ -1,4 +1,4 @@ -import { CustomCommandParamType, CustomCommandStatus, system, world } from '@minecraft/server'; +import { CustomCommandParamType, CustomCommandStatus, system } from '@minecraft/server'; import { Command } from '../classes/Commands/Command'; import { findInstance } from '../classes/Commands/lib/findInstance'; import { commandError } from '../classes/Commands/lib/commandError'; diff --git a/packs/RP/texts/en_US.lang b/packs/RP/texts/en_US.lang index ba04508..27c0b17 100644 --- a/packs/RP/texts/en_US.lang +++ b/packs/RP/texts/en_US.lang @@ -86,7 +86,6 @@ construct.mainmenu.howto.remove.body=§7- Use the §f/structure delete§7 comman ## Commands construct.commands.construct=Gives you the Construct item. Use it to open the Construct menu. -construct.commands.construct.denyorigin=This command can only be used by players. construct.commands.construct.fail=§cFailed to give you the Construct item. construct.commands.construct.success=§aYou recieved the Construct item! Use it to open the Construct menu. diff --git a/packs/RP/texts/zh_CN.lang b/packs/RP/texts/zh_CN.lang index 0447bef..273c530 100644 --- a/packs/RP/texts/zh_CN.lang +++ b/packs/RP/texts/zh_CN.lang @@ -86,7 +86,6 @@ construct.mainmenu.howto.remove.body=§7-使用§f/structure delete§7命令从 ## Commands construct.commands.construct=获得投影构筑菜单物品,可以使用它打开投影构筑菜单 -construct.commands.construct.denyorigin=此命令只能由玩家使用 construct.commands.construct.fail=§c给予投影构筑菜单物品时发生错误 construct.commands.construct.success=§a您已获得投影构筑菜单物品, 右键(长按)使用它以打开投影构筑菜单 @@ -109,7 +108,7 @@ construct.option.materialgrabber.grabbed.many=§a已收集 %s 个物品 ## 插 ## CLI shared errors construct.commands.error.instanceNotFound=§cInstance "%1" not found. -construct.commands.error.notAPlayer=§cThis command can only be used by players. +construct.commands.error.notAPlayer=§c此命令只能由玩家使用 ## construct:new construct.commands.new=Create a new instance bound to a structure.