mirror of
https://github.com/EssentialsX/Essentials.git
synced 2025-01-03 06:57:39 +01:00
parent
908189a233
commit
037577162b
@ -263,6 +263,14 @@ public final class Enchantments {
|
||||
} 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 {
|
||||
final Class<?> namespacedKeyClass = Class.forName("org.bukkit.NamespacedKey");
|
||||
final Class<?> enchantmentClass = Class.forName("org.bukkit.enchantments.Enchantment");
|
||||
|
Loading…
Reference in New Issue
Block a user