Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion scripts/library/Minecraft.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 => {
Expand Down
4 changes: 2 additions & 2 deletions src/library/Minecraft.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -141,4 +141,4 @@ class ServerBuild extends ServerBuilder {
/**
* Import this constructor
*/
export const Server = new ServerBuild();
export const Server = new ServerBuild();