Make enchantments case insensitive.
Lowercasing the enchantment string before feeding it to the Bukkit API makes the enchantments a little more "copy/paste proof" when grabbing the uppercased names from the JavaDocs/Minecraft wiki.
This commit is contained in:
@@ -160,6 +160,6 @@ public class ItemParser
|
||||
}
|
||||
|
||||
private static Enchantment getEnchantment(String ench) {
|
||||
return Enchantment.getByKey(NamespacedKey.minecraft(ench));
|
||||
return Enchantment.getByKey(NamespacedKey.minecraft(ench.toLowerCase()));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user