Extra hint in error message for #566

This commit is contained in:
BuildTools 2018-12-10 12:24:45 -05:00
parent 25ffb29b0d
commit 9c1c19d623

View File

@ -171,10 +171,10 @@ public class ItemUtil {
if (Quests.getEnchantment(temp[0]) != null) { if (Quests.getEnchantment(temp[0]) != null) {
enchs.put(Quests.getEnchantment(temp[0]), Integer.parseInt(temp[1])); enchs.put(Quests.getEnchantment(temp[0]), Integer.parseInt(temp[1]));
} else { } else {
Bukkit.getLogger().severe("The enchantment name \'" + temp[0] + "\' is invalid. Make sure it is spelled correctly"); Bukkit.getLogger().severe("The enchantment name \'" + temp[0] + "\' on " + name + " is invalid. Make sure it is spelled correctly");
} }
} catch (IllegalArgumentException e) { } catch (IllegalArgumentException e) {
Bukkit.getLogger().severe("The enchantment name \'" + temp[0] + "\' is invalid. Make sure quests.yml is UTF-8 encoded"); Bukkit.getLogger().severe("The enchantment name \'" + temp[0] + "\' on " + name + " is invalid. Make sure quests.yml is UTF-8 encoded");
return null; return null;
} }
} else if (arg.startsWith("displayname-")) { } else if (arg.startsWith("displayname-")) {