From 4b079289941be4b1f7215331a64d17b3654811ec Mon Sep 17 00:00:00 2001 From: NotMyFault Date: Thu, 4 Oct 2018 20:20:05 +0200 Subject: [PATCH 1/3] Fixing wrong syntax --- .../java/com/sk89q/worldedit/command/OptionsCommands.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/worldedit-core/src/main/java/com/sk89q/worldedit/command/OptionsCommands.java b/worldedit-core/src/main/java/com/sk89q/worldedit/command/OptionsCommands.java index 949e392d9..bb8b1f2eb 100644 --- a/worldedit-core/src/main/java/com/sk89q/worldedit/command/OptionsCommands.java +++ b/worldedit-core/src/main/java/com/sk89q/worldedit/command/OptionsCommands.java @@ -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)."); @@ -308,7 +308,7 @@ public class OptionsCommands { } if (found == 0) { - actor.printError("No items found."); + actor.printError("No item found."); } } } From 39ba616ffa8382d3e7e88ddc68d0118666b2b8dc Mon Sep 17 00:00:00 2001 From: NotMyFault Date: Thu, 4 Oct 2018 20:42:43 +0200 Subject: [PATCH 2/3] heightmapinterface permission Heightmapinterface permission added as you can download it on any server --- .../main/java/com/sk89q/worldedit/command/UtilityCommands.java | 1 + 1 file changed, 1 insertion(+) diff --git a/worldedit-core/src/main/java/com/sk89q/worldedit/command/UtilityCommands.java b/worldedit-core/src/main/java/com/sk89q/worldedit/command/UtilityCommands.java index f69f4d310..fa52cc05a 100644 --- a/worldedit-core/src/main/java/com/sk89q/worldedit/command/UtilityCommands.java +++ b/worldedit-core/src/main/java/com/sk89q/worldedit/command/UtilityCommands.java @@ -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); From 730e50a710feb74d8322f26063d4831f20d998cf Mon Sep 17 00:00:00 2001 From: NotMyFault Date: Thu, 4 Oct 2018 20:52:54 +0200 Subject: [PATCH 3/3] That wasn't supposed to be like that --- .../java/com/sk89q/worldedit/command/OptionsCommands.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/worldedit-core/src/main/java/com/sk89q/worldedit/command/OptionsCommands.java b/worldedit-core/src/main/java/com/sk89q/worldedit/command/OptionsCommands.java index bb8b1f2eb..74ff80ade 100644 --- a/worldedit-core/src/main/java/com/sk89q/worldedit/command/OptionsCommands.java +++ b/worldedit-core/src/main/java/com/sk89q/worldedit/command/OptionsCommands.java @@ -308,10 +308,10 @@ public class OptionsCommands { } if (found == 0) { - actor.printError("No item found."); + actor.printError("No items found."); } } } -} \ No newline at end of file +}