mirror of
https://github.com/taoneill/war.git
synced 2024-11-13 05:54:31 +01:00
Closes gh-417. Potion effects are cleared properly again at warzone exit and at death - that part of the bukkit API is broken in 1.2.3-R0.1 and R0.2, at least.
This commit is contained in:
parent
f8e771c9e0
commit
fc03a0cf74
@ -17,7 +17,7 @@ public class PotionEffectHelper {
|
||||
public static void clearPotionEffects(Player player) {
|
||||
for(PotionEffect effect : player.getActivePotionEffects())
|
||||
{
|
||||
player.removePotionEffect(effect.getType());
|
||||
player.addPotionEffect(new PotionEffect(effect.getType(), 0, 0), true);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user