aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/io/github/moulberry/notenoughupdates/commands/misc/UpdateCommand.java
diff options
context:
space:
mode:
authorRoman / Linnea Gräf <roman.graef@gmail.com>2022-10-11 21:43:00 +0200
committerGitHub <noreply@github.com>2022-10-11 15:43:00 -0400
commit54eea328ad47ff55f3c8498fdc13e61a30200087 (patch)
tree26a44e51b55f69891ee49518c96f42e8b7d334d2 /src/main/java/io/github/moulberry/notenoughupdates/commands/misc/UpdateCommand.java
parent90b3225afdd5e43c54e82d73478f2c2f1e046f80 (diff)
downloadnotenoughupdates-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.java18
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;