mirror of
https://github.com/EssentialsX/Essentials.git
synced 2024-11-27 01:40:48 +08:00
Add support for 1.21 potions
This commit is contained in:
parent
022b0049b4
commit
6624e6688c
@ -144,6 +144,23 @@ public final class Potions {
|
||||
POTIONS.put("unluck", PotionEffectType.UNLUCK);
|
||||
} catch (final Throwable ignored) {
|
||||
}
|
||||
|
||||
// 1.21
|
||||
try {
|
||||
POTIONS.put("infested", PotionEffectType.INFESTED);
|
||||
ALIASPOTIONS.put("silverfish", PotionEffectType.INFESTED);
|
||||
|
||||
POTIONS.put("oozing", PotionEffectType.OOZING);
|
||||
ALIASPOTIONS.put("ooze", PotionEffectType.OOZING);
|
||||
|
||||
POTIONS.put("weaving", PotionEffectType.WEAVING);
|
||||
ALIASPOTIONS.put("weave", PotionEffectType.WEAVING);
|
||||
|
||||
POTIONS.put("windcharged", PotionEffectType.WIND_CHARGED);
|
||||
ALIASPOTIONS.put("windcharge", PotionEffectType.WIND_CHARGED);
|
||||
ALIASPOTIONS.put("wind", PotionEffectType.WIND_CHARGED);
|
||||
} catch (final Throwable ignored) {
|
||||
}
|
||||
}
|
||||
|
||||
private Potions() {
|
||||
|
Loading…
Reference in New Issue
Block a user