Merge pull request #7 from N0tMyFaultOG/master

Heightmapinterface permission and reverting some previous settings
This commit is contained in:
Jesse Boyd 2018-10-13 15:12:58 +11:00 committed by GitHub
commit 1b7ac7a0bc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View File

@ -264,7 +264,7 @@ public class OptionsCommands {
ItemType type = ItemTypes.get(query);
if (type != null) {
actor.print(BBC.getPrefix() + "#" + type.getId() + " (" + type.getName() + ")");
actor.print(BBC.getPrefix() + type.getId() + " (" + type.getName() + ")");
} else {
if (query.length() <= 2) {
actor.printError("Enter a longer search string (len > 2).");
@ -314,4 +314,4 @@ public class OptionsCommands {
}
}
}

View File

@ -175,6 +175,7 @@ public class UtilityCommands extends MethodCommands {
aliases = {"/heightmapinterface"},
desc = "Generate the heightmap interface: https://github.com/boy0001/HeightMap"
)
@CommandPermissions("fawe.admin")
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);