From 6eb61573c548b66201288c1536e105067b978f0f Mon Sep 17 00:00:00 2001 From: ForestOfLight Date: Wed, 20 May 2026 17:27:15 -0700 Subject: [PATCH] feat: rename /active -> /enable --- .../commands/{ActiveCommand.js => EnableCommand.js} | 10 +++++----- packs/BP/scripts/main.js | 2 +- packs/RP/texts/en_US.lang | 8 ++++---- 3 files changed, 10 insertions(+), 10 deletions(-) rename packs/BP/scripts/commands/{ActiveCommand.js => EnableCommand.js} (84%) diff --git a/packs/BP/scripts/commands/ActiveCommand.js b/packs/BP/scripts/commands/EnableCommand.js similarity index 84% rename from packs/BP/scripts/commands/ActiveCommand.js rename to packs/BP/scripts/commands/EnableCommand.js index a604e7f..e259f45 100644 --- a/packs/BP/scripts/commands/ActiveCommand.js +++ b/packs/BP/scripts/commands/EnableCommand.js @@ -2,11 +2,11 @@ import { Command } from '../classes/Commands/Command'; import { CustomCommandParamType, CustomCommandStatus, CommandPermissionLevel, system } from '@minecraft/server'; import { structureCollection } from '../classes/Structure/StructureCollection'; -export class ActiveCommand extends Command { +export class EnableCommand extends Command { constructor() { super({ - name: 'active', - description: 'construct.commands.active', + name: 'enable', + description: 'construct.commands.enable', mandatoryParameters: [ { name: 'instanceName', type: CustomCommandParamType.String }, { name: 'state', type: CustomCommandParamType.Boolean } @@ -33,8 +33,8 @@ export class ActiveCommand extends Command { } sendFeedback(source, instanceName, state) { - source.sendMessage({ translate: state ? 'construct.commands.active.true' : 'construct.commands.active.false', with: [instanceName] }); + source.sendMessage({ translate: state ? 'construct.commands.enable.true' : 'construct.commands.enable.false', with: [instanceName] }); } } -export const activeCommand = new ActiveCommand(); +export const enableCommand = new EnableCommand(); diff --git a/packs/BP/scripts/main.js b/packs/BP/scripts/main.js index 48b1923..359cbcf 100644 --- a/packs/BP/scripts/main.js +++ b/packs/BP/scripts/main.js @@ -17,7 +17,7 @@ import './commands/RenameCommand'; import './commands/InstancesCommand'; import './commands/PlaceCommand'; import './commands/MoveCommand'; -import './commands/ActiveCommand'; +import './commands/EnableCommand'; import './commands/LayerCommand'; import './commands/NextLayerCommand'; import './commands/PrevLayerCommand'; diff --git a/packs/RP/texts/en_US.lang b/packs/RP/texts/en_US.lang index cbc3bea..cb5e947 100644 --- a/packs/RP/texts/en_US.lang +++ b/packs/RP/texts/en_US.lang @@ -136,10 +136,10 @@ construct.commands.move=Reposition a Construct instance without toggling its ena construct.commands.move.success=§aMoved instance "%1" to %2 in %3. construct.commands.move.locationRequired=§cMust provide a dimension and coordinates when not running as a player. -## construct:active -construct.commands.active=Enable or disable a Construct instance. -construct.commands.active.true=§aEnabled instance "%1". -construct.commands.active.false=§aDisabled instance "%1". +## construct:enable +construct.commands.enable=Enable or disable a Construct instance. +construct.commands.enable.true=§aEnabled instance "%1". +construct.commands.enable.false=§aDisabled instance "%1". construct.commands.error.noLocation=§cInstance "%1" has no saved location. ## construct:layer