feat: rename /active -> /enable

This commit is contained in:
ForestOfLight
2026-05-20 17:27:15 -07:00
Unverified
parent eb5268cf11
commit 6eb61573c5
3 changed files with 10 additions and 10 deletions
@@ -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();
+1 -1
View File
@@ -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';