Skip to content

Commit

Permalink
Немного поменял работу команды downloadclient, close AuroraTeam#7
Browse files Browse the repository at this point in the history
  • Loading branch information
JoCat committed Jun 13, 2021
1 parent b96b74e commit 198c5f7
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/commands/updates/DownloadClientCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,11 @@ import { AbstractCommand, Category } from "../AbstractCommand"

export class DownloadClientCommand extends AbstractCommand {
constructor() {
super("downloadclient", "Загрузить клиент", Category.UPDATES, "<source type> <version> <folder name>")
super("downloadclient", "Загрузить клиент", Category.UPDATES, "<version> <folder name> <?source type>")
}

async invoke(...args: string[]): Promise<void> {
const [sourceType, clientName, dirName] = args
if (!sourceType) return LogHelper.error("Укажите тип источника!")
const [clientName, dirName, sourceType = "mojang"] = args
if (!clientName) return LogHelper.error("Укажите название/версию клиента!")
if (!dirName) return LogHelper.error("Укажите название папки для клиента!")

Expand Down

0 comments on commit 198c5f7

Please sign in to comment.