Clear potion effects on kit equip

This commit is contained in:
AlexTheCoder 2017-07-24 15:48:31 -04:00 committed by cnr
parent d737b41281
commit 5873075836

View File

@ -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));
}