diff --git a/packs/BP/scripts/commands/NewCommand.js b/packs/BP/scripts/commands/CreateCommand.js similarity index 84% rename from packs/BP/scripts/commands/NewCommand.js rename to packs/BP/scripts/commands/CreateCommand.js index 4499fec..a198c77 100644 --- a/packs/BP/scripts/commands/NewCommand.js +++ b/packs/BP/scripts/commands/CreateCommand.js @@ -4,11 +4,11 @@ import { structureCollection } from '../classes/Structure/StructureCollection'; import { InstanceExistsError } from '../classes/Errors/InstanceExistsError'; import { StructureNotFoundError } from '../classes/Errors/StructureNotFoundError'; -export class NewCommand extends Command { +export class CreateCommand extends Command { constructor() { super({ - name: 'new', - description: 'construct.commands.new', + name: 'create', + description: 'construct.commands.create', mandatoryParameters: [ { name: 'instanceName', type: CustomCommandParamType.String }, { name: 'structureId', type: CustomCommandParamType.String } @@ -35,7 +35,7 @@ export class NewCommand extends Command { addStructure(source, instanceName, structureId) { structureCollection.add(instanceName, structureId); - source.sendMessage({ translate: 'construct.commands.new.success', with: [instanceName, structureId] }); + source.sendMessage({ translate: 'construct.commands.create.success', with: [instanceName, structureId] }); } handleStructureAdditionErrors(source, error) { @@ -47,4 +47,4 @@ export class NewCommand extends Command { } -export const newCommand = new NewCommand(); +export const createCommand = new CreateCommand(); diff --git a/packs/BP/scripts/main.js b/packs/BP/scripts/main.js index b17ac0b..6af027f 100644 --- a/packs/BP/scripts/main.js +++ b/packs/BP/scripts/main.js @@ -11,7 +11,7 @@ import './classes/MenuItemHandler'; // Commands import './commands/ConstructCommand'; -import './commands/NewCommand'; +import './commands/CreateCommand'; import './commands/DeleteCommand'; import './commands/RenameCommand'; import './commands/ListCommand'; diff --git a/packs/RP/texts/en_US.lang b/packs/RP/texts/en_US.lang index b29a15e..c79b8f9 100644 --- a/packs/RP/texts/en_US.lang +++ b/packs/RP/texts/en_US.lang @@ -104,10 +104,10 @@ construct.commands.construct=Gives you the Construct item. Use it to open the Co 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. -## construct:new -construct.commands.new=Create a new instance bound to a structure. -construct.commands.new.success=§aCreated instance "%1" bound to structure "%2". -construct.commands.new.unknownStructure=§cNo structure with id "%1" found in the world. +## construct:create +construct.commands.create=Create a new Construct instance bound to a structure. +construct.commands.create.success=§aCreated instance "%1" bound to structure "%2". +construct.commands.create.unknownStructure=§cNo structure with id "%1" found in the world. ## construct:delete construct.commands.delete=Permanently delete an instance.