mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-11-02 10:57:11 +00:00
Merge pull request #7 from N0tMyFaultOG/master
Heightmapinterface permission and reverting some previous settings
This commit is contained in:
commit
1b7ac7a0bc
@ -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 {
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user