diff --git a/src/main/java/me/blackvein/quests/Quester.java b/src/main/java/me/blackvein/quests/Quester.java index b9b04da37..cdf8ffa08 100644 --- a/src/main/java/me/blackvein/quests/Quester.java +++ b/src/main/java/me/blackvein/quests/Quester.java @@ -430,18 +430,18 @@ public class Quester { Material m = Material.matchMaterial(serial); Enchantment e = Enchantment.getByName(Lang.getKey(enchant).replace("ENCHANTMENT_", "")); plugin.query.sendMessage(player, s.replace(serial, "").replace(enchant, ""), m, e); + continue; } else if (Material.matchMaterial(serial) != null) { Material m = Material.matchMaterial(serial); plugin.query.sendMessage(player, s.replace(serial, ""), m); - } else if (EntityType.valueOf(serial.toUpperCase().replace(" ", "_")) != null) { + continue; + } else { try { EntityType type = EntityType.valueOf(serial.toUpperCase().replace(" ", "_")); plugin.query.sendMessage(player, s.replace(serial, ""), type); } catch (IllegalArgumentException e) { player.sendMessage(s); } - } else { - player.sendMessage(s); } } catch (IndexOutOfBoundsException e) { player.sendMessage(s);