t
This commit is contained in:
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user