From 037714ab76628e0cb865a65146052b239c197191 Mon Sep 17 00:00:00 2001 From: NotMyFault Date: Thu, 4 Oct 2018 00:29:01 +0200 Subject: [PATCH] Possibly fix for searchItem message --- .../com/sk89q/worldedit/command/OptionsCommands.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 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 ee1db0b6b..949e392d9 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(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)."); @@ -272,21 +272,21 @@ public class OptionsCommands { } if (!blocksOnly && !itemsOnly) { - actor.print("Searching for: " + query); + actor.print(BBC.getPrefix() + "Searching for: " + query); } else if (blocksOnly && itemsOnly) { actor.printError("You cannot use both the 'b' and 'i' flags simultaneously."); return; } else if (blocksOnly) { - actor.print("Searching for blocks: " + query); + actor.print(BBC.getPrefix() + "Searching for blocks: " + query); } else { - actor.print("Searching for items: " + query); + actor.print(BBC.getPrefix() + "Searching for items: " + query); } int found = 0; for (ItemType searchType : ItemTypes.values) { if (found >= 15) { - actor.print("Too many results!"); + actor.print(BBC.getPrefix() + "Too many results!"); break; } @@ -300,7 +300,7 @@ public class OptionsCommands { for (String alias : Sets.newHashSet(searchType.getId(), searchType.getName())) { if (alias.contains(query)) { - actor.print(searchType.getId() + " (" + searchType.getName() + ")"); + actor.print(BBC.getPrefix() + "#" + type.getId() + " (" + type.getName() + ")"); ++found; break; }