aboutsummaryrefslogtreecommitdiff
path: root/src/net/brysonsteck
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/brysonsteck')
-rw-r--r--src/net/brysonsteck/Resurrection/PlayerListener.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/net/brysonsteck/Resurrection/PlayerListener.java b/src/net/brysonsteck/Resurrection/PlayerListener.java
index b94e83d..039f723 100644
--- a/src/net/brysonsteck/Resurrection/PlayerListener.java
+++ b/src/net/brysonsteck/Resurrection/PlayerListener.java
@@ -33,6 +33,11 @@ public class PlayerListener implements Listener {
public void onPlayerRespawn(PlayerRespawnEvent e) {
Player p = e.getPlayer();
p.setGameMode(GameMode.ADVENTURE);
+ try {
+ Thread.sleep(1000);
+ } catch (InterruptedException interruptedException) {
+ interruptedException.printStackTrace();
+ }
p.addPotionEffect(new PotionEffect(PotionEffectType.INVISIBILITY, 1728000, 10, false));
p.addPotionEffect(new PotionEffect(PotionEffectType.BLINDNESS, 1728000, 10, false));
p.addPotionEffect(new PotionEffect(PotionEffectType.SLOW, 1728000, 10, false));