From e7683204ef07bb221853b671e3effb0187fc8340 Mon Sep 17 00:00:00 2001 From: Bryson Steck Date: Tue, 15 Jun 2021 18:51:39 -0600 Subject: removed potion calls in seperate thread --- src/net/brysonsteck/Resurrection/player/ResurrectPlayer.java | 3 --- 1 file changed, 3 deletions(-) (limited to 'src/net') diff --git a/src/net/brysonsteck/Resurrection/player/ResurrectPlayer.java b/src/net/brysonsteck/Resurrection/player/ResurrectPlayer.java index 971ada3..b47c6af 100644 --- a/src/net/brysonsteck/Resurrection/player/ResurrectPlayer.java +++ b/src/net/brysonsteck/Resurrection/player/ResurrectPlayer.java @@ -8,9 +8,6 @@ import org.bukkit.potion.PotionEffect; public class ResurrectPlayer { public ResurrectPlayer(Player p) { - for (PotionEffect effect : p.getActivePotionEffects()) - p.removePotionEffect(effect.getType()); - p.setGameMode(GameMode.SURVIVAL); Bukkit.broadcastMessage(p.getDisplayName() + " has resurrected!"); } } -- cgit v1.2.3