mirror of
https://github.com/EssentialsX/Essentials.git
synced 2025-01-05 07:57:59 +01:00
parent
908189a233
commit
037577162b
@ -263,6 +263,14 @@ public final class Enchantments {
|
|||||||
} catch (final IllegalArgumentException ignored) {
|
} catch (final IllegalArgumentException ignored) {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
try { // 1.19
|
||||||
|
final Enchantment swiftSneak = Enchantment.getByName("SWIFT_SNEAK");
|
||||||
|
if (swiftSneak != null) {
|
||||||
|
ENCHANTMENTS.put("swiftsneak", swiftSneak);
|
||||||
|
}
|
||||||
|
} catch (final IllegalArgumentException ignored) {
|
||||||
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
final Class<?> namespacedKeyClass = Class.forName("org.bukkit.NamespacedKey");
|
final Class<?> namespacedKeyClass = Class.forName("org.bukkit.NamespacedKey");
|
||||||
final Class<?> enchantmentClass = Class.forName("org.bukkit.enchantments.Enchantment");
|
final Class<?> enchantmentClass = Class.forName("org.bukkit.enchantments.Enchantment");
|
||||||
|
Loading…
Reference in New Issue
Block a user