From 4011769af892f0f583d890d4d9af79e273862034 Mon Sep 17 00:00:00 2001 From: Joshua Carlson <61999256+minerj101@users.noreply.github.com> Date: Wed, 20 Oct 2021 17:54:44 -0400 Subject: [PATCH 1/2] =?UTF-8?q?Removed=20=C2=A7f=20from=20custom=20command?= =?UTF-8?q?=20error=20message...?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/library/Minecraft.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/library/Minecraft.ts b/src/library/Minecraft.ts index 70567ad..7b7d640 100644 --- a/src/library/Minecraft.ts +++ b/src/library/Minecraft.ts @@ -40,7 +40,7 @@ class ServerBuild extends ServerBuilder { const getCommand = Command.getAllRegistation().some(element => element.name === command || element.aliases && element.aliases.includes(command)); if(!getCommand) { data.cancel = true; - return this.runCommand(`tellraw "${data.sender.nameTag}" {"rawtext":[{"text":"§c"},{"translate":"commands.generic.unknown", "with": ["§f${command}§c"]}]}`); + return this.runCommand(`tellraw "${data.sender.nameTag}" {"rawtext":[{"text":"§c"},{"translate":"commands.generic.unknown", "with": ["${command}"]}]}`); }; Command.getAllRegistation().forEach(element => { if(!data.message.startsWith(this.command.prefix) || element.name !== command) return; @@ -141,4 +141,4 @@ class ServerBuild extends ServerBuilder { /** * Import this constructor */ -export const Server = new ServerBuild(); \ No newline at end of file +export const Server = new ServerBuild(); From 1d912b2f391c6f1b348c8c2325b4082da2492646 Mon Sep 17 00:00:00 2001 From: Joshua Carlson <61999256+minerj101@users.noreply.github.com> Date: Wed, 20 Oct 2021 17:55:16 -0400 Subject: [PATCH 2/2] =?UTF-8?q?Removed=20=C2=A7f=20from=20custom=20command?= =?UTF-8?q?=20error=20message...?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/library/Minecraft.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/library/Minecraft.js b/scripts/library/Minecraft.js index 6afc8a2..f35ba80 100644 --- a/scripts/library/Minecraft.js +++ b/scripts/library/Minecraft.js @@ -38,7 +38,7 @@ class ServerBuild extends ServerBuilder { const getCommand = Command.getAllRegistation().some(element => element.name === command || element.aliases && element.aliases.includes(command)); if (!getCommand) { data.cancel = true; - return this.runCommand(`tellraw "${data.sender.nameTag}" {"rawtext":[{"text":"§c"},{"translate":"commands.generic.unknown", "with": ["§f${command}§c"]}]}`); + return this.runCommand(`tellraw "${data.sender.nameTag}" {"rawtext":[{"text":"§c"},{"translate":"commands.generic.unknown", "with": ["${command}"]}]}`); } ; Command.getAllRegistation().forEach(element => {