diff --git a/src/main/java/rip/tilly/bedwars/listeners/game/MovementListener.java b/src/main/java/rip/tilly/bedwars/listeners/game/MovementListener.java index 3e31caa..ecf4e1f 100644 --- a/src/main/java/rip/tilly/bedwars/listeners/game/MovementListener.java +++ b/src/main/java/rip/tilly/bedwars/listeners/game/MovementListener.java @@ -77,6 +77,10 @@ public class MovementListener implements Listener { if (!player.getActivePotionEffects().contains(PotionEffectType.REGENERATION)) { player.addPotionEffect(new PotionEffect(PotionEffectType.REGENERATION, 1000000, 0)); } + } else { + if (player.getActivePotionEffects().contains(PotionEffectType.REGENERATION)) { + player.removePotionEffect(PotionEffectType.REGENERATION); + } } }