Mirror von
https://github.com/IntellectualSites/FastAsyncWorldEdit.git
synchronisiert 2024-11-05 02:50:05 +01:00
Merge pull request #7 from N0tMyFaultOG/master
Heightmapinterface permission and reverting some previous settings
Dieser Commit ist enthalten in:
Commit
1b7ac7a0bc
@ -264,7 +264,7 @@ public class OptionsCommands {
|
|||||||
ItemType type = ItemTypes.get(query);
|
ItemType type = ItemTypes.get(query);
|
||||||
|
|
||||||
if (type != null) {
|
if (type != null) {
|
||||||
actor.print(BBC.getPrefix() + "#" + type.getId() + " (" + type.getName() + ")");
|
actor.print(BBC.getPrefix() + type.getId() + " (" + type.getName() + ")");
|
||||||
} else {
|
} else {
|
||||||
if (query.length() <= 2) {
|
if (query.length() <= 2) {
|
||||||
actor.printError("Enter a longer search string (len > 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"},
|
aliases = {"/heightmapinterface"},
|
||||||
desc = "Generate the heightmap interface: https://github.com/boy0001/HeightMap"
|
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 {
|
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);
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren