aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBryson Steck <steck.bryson@gmail.com>2021-06-06 18:02:59 -0600
committerBryson Steck <steck.bryson@gmail.com>2021-06-06 18:02:59 -0600
commitf84afebf125128be40772884824e43952d1415e6 (patch)
tree3f8dea0c166dd7deec10effd16a98127cba7e7e1 /src
parent1e32b6f67e1f10479a89aba73d889c267d678786 (diff)
downloadresurrection-f84afebf125128be40772884824e43952d1415e6.tar
resurrection-f84afebf125128be40772884824e43952d1415e6.tar.gz
resurrection-f84afebf125128be40772884824e43952d1415e6.tar.bz2
does delay fix the problem
Diffstat (limited to 'src')
-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));