From 714afabf3094a01d7f83fd2d167304cbea432cd1 Mon Sep 17 00:00:00 2001 From: CocoTheOwner Date: Mon, 16 Aug 2021 19:04:07 +0200 Subject: [PATCH] Download --- .../java/com/volmit/iris/core/decrees/DecIris.java | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/volmit/iris/core/decrees/DecIris.java b/src/main/java/com/volmit/iris/core/decrees/DecIris.java index 0d22adb31..e57665908 100644 --- a/src/main/java/com/volmit/iris/core/decrees/DecIris.java +++ b/src/main/java/com/volmit/iris/core/decrees/DecIris.java @@ -84,5 +84,16 @@ public class DecIris implements DecreeExecutor IrisSettings.get().getGeneral().setDebug(on); } - + @Decree(description = "Download a project.") + public void download( + @Param(name = "pack", description = "The pack to download", defaultValue = "overworld", aliases = "project") + String pack, + @Param(name = "branch", description = "The branch to download from", defaultValue = "master") + String branch, + @Param(name = "trim", description = "Whether or not to download a trimmed version (do not enable when you're going to edit)") + boolean trim + ){ + sender().sendMessage(C.GREEN + "Downloading pack: " + pack + "/" + branch + (trim ? " trimmed" : "")); + Iris.proj.downloadSearch(sender(), "IrisDimensions/" + pack + "/" + branch, trim); + } }