From 7108d62567c70e41b546ef4404391ace5374f8c6 Mon Sep 17 00:00:00 2001 From: Jesse Boyd Date: Fri, 7 Sep 2018 06:45:03 +1000 Subject: [PATCH] add min/max args --- .../java/com/sk89q/worldedit/command/UtilityCommands.java | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/core/src/main/java/com/sk89q/worldedit/command/UtilityCommands.java b/core/src/main/java/com/sk89q/worldedit/command/UtilityCommands.java index 7e919053..f165a2ff 100644 --- a/core/src/main/java/com/sk89q/worldedit/command/UtilityCommands.java +++ b/core/src/main/java/com/sk89q/worldedit/command/UtilityCommands.java @@ -168,15 +168,11 @@ public class UtilityCommands extends MethodCommands { @Command( aliases = {"/heightmapinterface"}, desc = "Generate the heightmap interface: https://github.com/boy0001/HeightMap", - max = 0 ) - public void heightmapInterface(FawePlayer player) throws IOException { + public void heightmapInterface(FawePlayer player, @Optional("100") int min, @Optional("200") int max) throws IOException { player.sendMessage("Please wait while we generate the minified heightmaps."); File srcFolder = MainUtil.getFile(Fawe.imp().getDirectory(), Settings.IMP.PATHS.HEIGHTMAP); - int min = 100; - int max = 200; - File webSrc = new File(Fawe.imp().getDirectory(), "web" + File.separator + "heightmap"); File minImages = new File(webSrc, "images" + File.separator + "min"); File maxImages = new File(webSrc, "images" + File.separator + "max");