mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-12-23 09:47:38 +00:00
add min/max args
This commit is contained in:
parent
7af1b3dcc8
commit
d99765f13f
@ -176,13 +176,10 @@ public class UtilityCommands extends MethodCommands {
|
|||||||
desc = "Generate the heightmap interface: https://github.com/boy0001/HeightMap",
|
desc = "Generate the heightmap interface: https://github.com/boy0001/HeightMap",
|
||||||
max = 0
|
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.");
|
player.sendMessage("Please wait while we generate the minified heightmaps.");
|
||||||
File srcFolder = MainUtil.getFile(Fawe.imp().getDirectory(), Settings.IMP.PATHS.HEIGHTMAP);
|
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 webSrc = new File(Fawe.imp().getDirectory(), "web" + File.separator + "heightmap");
|
||||||
File minImages = new File(webSrc, "images" + File.separator + "min");
|
File minImages = new File(webSrc, "images" + File.separator + "min");
|
||||||
File maxImages = new File(webSrc, "images" + File.separator + "max");
|
File maxImages = new File(webSrc, "images" + File.separator + "max");
|
||||||
|
Loading…
Reference in New Issue
Block a user