diff options
| author | Roman / Linnea Gräf <roman.graef@gmail.com> | 2022-10-11 21:43:00 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-10-11 15:43:00 -0400 |
| commit | 54eea328ad47ff55f3c8498fdc13e61a30200087 (patch) | |
| tree | 26a44e51b55f69891ee49518c96f42e8b7d334d2 /src/main/java/io/github/moulberry/notenoughupdates/commands/misc/UpdateCommand.java | |
| parent | 90b3225afdd5e43c54e82d73478f2c2f1e046f80 (diff) | |
| download | notenoughupdates-54eea328ad47ff55f3c8498fdc13e61a30200087.tar.gz notenoughupdates-54eea328ad47ff55f3c8498fdc13e61a30200087.tar.bz2 notenoughupdates-54eea328ad47ff55f3c8498fdc13e61a30200087.zip | |
Add ability to sign update.json, needed for autoupdates (#354)
* Add ability to sign update.json, needed for autoupdates
* Remove update from URL
Diffstat (limited to 'src/main/java/io/github/moulberry/notenoughupdates/commands/misc/UpdateCommand.java')
| -rw-r--r-- | src/main/java/io/github/moulberry/notenoughupdates/commands/misc/UpdateCommand.java | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/commands/misc/UpdateCommand.java b/src/main/java/io/github/moulberry/notenoughupdates/commands/misc/UpdateCommand.java index 36443b27..cac93369 100644 --- a/src/main/java/io/github/moulberry/notenoughupdates/commands/misc/UpdateCommand.java +++ b/src/main/java/io/github/moulberry/notenoughupdates/commands/misc/UpdateCommand.java @@ -49,10 +49,6 @@ public class UpdateCommand extends ClientCommandBase { "" + "§e[NEU] §b/neuupdate help - View help.\n" + "§e[NEU] §b/neuupdate check - Check for updates.\n" + - "§e[NEU] §b/neuupdate url <url> - Load an update from an direct download URL.\n" + - " §cONLY DO THIS WITH TRUSTED URLS OR IT MIGHT RESULT IN A RAT!\n" + - "§e[NEU] §b/neuupdate fromartifact <url> - Load an update from an artifact.\n" + - " §cIf you don't know what this is, don't use it.\n" + "" )); @@ -68,20 +64,6 @@ public class UpdateCommand extends ClientCommandBase { case "check": neu.autoUpdater.displayUpdateMessageIfOutOfDate(); break; - case "url": - if (args.length != 2) { - sender.addChatMessage(new ChatComponentText("§e[NEU] §cPlease provide an URL")); - } - URL url; - try { - url = new URL(args[1]); - } catch (MalformedURLException e) { - e.printStackTrace(); - sender.addChatMessage(new ChatComponentText("§e[NEU] §cInvalid URL")); - return; - } - neu.autoUpdater.updateFromURL(url); - break; case "scheduledownload": neu.autoUpdater.scheduleDownload(); break; |
