feat: rename /active -> /enable
This commit is contained in:
+5
-5
@@ -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();
|
||||
@@ -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';
|
||||
|
||||
Reference in New Issue
Block a user