diff --git a/Essentials/src/com/earth2me/essentials/Enchantments.java b/Essentials/src/com/earth2me/essentials/Enchantments.java index 4e73fa34e..016c47d81 100644 --- a/Essentials/src/com/earth2me/essentials/Enchantments.java +++ b/Essentials/src/com/earth2me/essentials/Enchantments.java @@ -234,7 +234,12 @@ public class Enchantments { } public static Enchantment getByName(String name) { - Enchantment enchantment = Enchantment.getByKey(NamespacedKey.minecraft(name.toLowerCase())); + Enchantment enchantment = null; + try { + // 1.13+ only + enchantment = Enchantment.getByKey(NamespacedKey.minecraft(name.toLowerCase())); + } catch (NoSuchMethodError ignored) {} + if (enchantment == null) { enchantment = Enchantment.getByName(name.toUpperCase()); }