add min/max args

This commit is contained in:
Jesse Boyd 2018-09-07 06:45:03 +10:00
parent 0af4a02687
commit 7108d62567
No known key found for this signature in database
GPG Key ID: 59F1DE6293AF6E1F
1 changed files with 1 additions and 5 deletions

View File

@ -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");