diff --git a/src/main/java/me/blackvein/quests/prompts/ItemStackPrompt.java b/src/main/java/me/blackvein/quests/prompts/ItemStackPrompt.java index 811271285..fda50f599 100644 --- a/src/main/java/me/blackvein/quests/prompts/ItemStackPrompt.java +++ b/src/main/java/me/blackvein/quests/prompts/ItemStackPrompt.java @@ -357,6 +357,10 @@ public class ItemStackPrompt extends FixedSetPrompt { return new ItemStackPrompt(oldPrompt); } } catch (NumberFormatException e) { + if (input.equals("*")) { + cc.setSessionData("tempData", Short.parseShort("999")); // wildcard value + return new ItemStackPrompt(oldPrompt); + } cc.getForWhom().sendRawMessage(ChatColor.RED + Lang.get("itemCreateInvalidInput")); return new DataPrompt(); } diff --git a/src/main/java/me/blackvein/quests/util/ItemUtil.java b/src/main/java/me/blackvein/quests/util/ItemUtil.java index a720a55ab..79dfa511f 100644 --- a/src/main/java/me/blackvein/quests/util/ItemUtil.java +++ b/src/main/java/me/blackvein/quests/util/ItemUtil.java @@ -62,7 +62,9 @@ public class ItemUtil { } else if ((one.getAmount() != two.getAmount()) && ignoreAmount == false) { return -2; } else if (one.getDurability() != two.getDurability()) { - return -3; + if (one.getDurability() >= 999 && two.getDurability() >= 999) { // wildcard value + return -3; + } } if (one.hasItemMeta() || two.hasItemMeta()) { if (one.hasItemMeta() && two.hasItemMeta() == false) {