mirror of
https://github.com/PikaMug/Quests.git
synced 2024-11-24 11:38:42 +01:00
Extra hint in error message for #566
This commit is contained in:
parent
25ffb29b0d
commit
9c1c19d623
@ -171,10 +171,10 @@ public class ItemUtil {
|
||||
if (Quests.getEnchantment(temp[0]) != null) {
|
||||
enchs.put(Quests.getEnchantment(temp[0]), Integer.parseInt(temp[1]));
|
||||
} 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) {
|
||||
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;
|
||||
}
|
||||
} else if (arg.startsWith("displayname-")) {
|
||||
|
Loading…
Reference in New Issue
Block a user