Clear potion effects on kit equip
This commit is contained in:
parent
d737b41281
commit
5873075836
@ -39,6 +39,7 @@ public abstract class KitPlayer extends ProgressingKit
|
||||
|
||||
protected void giveRegeneration(Player player)
|
||||
{
|
||||
player.getActivePotionEffects().forEach(p -> player.removePotionEffect(p.getType()));
|
||||
player.addPotionEffect(new PotionEffect(PotionEffectType.REGENERATION, 20 * 8, 4));
|
||||
player.addPotionEffect(new PotionEffect(PotionEffectType.DAMAGE_RESISTANCE, 20 * 8, 3));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user