From f84afebf125128be40772884824e43952d1415e6 Mon Sep 17 00:00:00 2001 From: Bryson Steck Date: Sun, 6 Jun 2021 18:02:59 -0600 Subject: [PATCH] does delay fix the problem --- .../Resurrection/PlayerListener.class | Bin 3031 -> 3278 bytes .../Resurrection/PlayerListener.java | 5 +++++ 2 files changed, 5 insertions(+) diff --git a/out/production/Resurrection/net/brysonsteck/Resurrection/PlayerListener.class b/out/production/Resurrection/net/brysonsteck/Resurrection/PlayerListener.class index 17841e0db11042eb79bce08d1eca6e692c0eefb4..4e4edacbf6c33335f15a9ab1c62030755aca9afb 100644 GIT binary patch delta 1046 zcmaKqYi~?p5XXPd?m2t*a#SN|C5^Pit+ri7L`p(LL!(`EON+Xk-5#sDwrg$OS@-+> zxZm&MWl6AvSKc7;)>rTuh|8Q>B#4uonR#aBnfcFuo)2a3hXvn$ef|oV!h^nGr#G*Q zEuZ&ekS3Z9q9*gHRg|u^Hd>LCl}<)l*JN$0Q=xB2*>=WYp5 zIbmmVT|Ma_3y7Jt;!_OFWV_P2Sk6jxw`Q$`ZLnDG_hgficyD*Nv)x-BYG;YTQj=wL zI5)g;{~}hJ=&W)ATAeR$lAzO>snti?S#6S}LlKzO)EJ!|ZHUDJw9{p>*7a(!rul6l z87*b9jxb~p)rtjasb^a*PB z@X|>`h+ZpFS?lrjUyzx(O*@*|mF5z4g zt>Y89M@|vZO0-`66xAn&hrJ@*FqE)Qr1>L({Tz^!;vk14Ymd_wNU6Qf>p&#$W_1t{ zxvZGwT8B9z*#n4jlw)#ZFmpK03A|KM&q=W~YN_EArv=b#$~YsIk9m~ha2A6Wsd-K; zKj)>ki|Il?f{R>o5s3X+vb4My$?;F9Zw^0VMu7&mSK~A0J-{EWc|uG01&fwEqHWOf z(xCS#D+*X1+KOKLpWZcpcn2*n(Cwj5FqBC3GI?s=ex_;(x&24T2qPslN`hl0JeqRG zP{BARQq5e(vw|?IWn7o6Y8ky;{>xmEGJ^gWZAqc+sx;Aw7iqgD@u7IWNm1G6PJ?NN zyftO8Kr7Oc|H;dBZWMVrB3hG+RYFTobGSfO5f!yjAr##w6s{?-RY-7G{$r4#(i7@L zPL!2T5`2@XlukeKO0i!ks|4lEev}o0aAS5IPVvx2BMWKR28APQDDuUur=K;m( zh{LN7z8Wx*R1<%I4?dar2mBit_bm-ZVs5hcI{WOi&syu;?^}MBhrj*){1s^6?Lv4s zU^^U8M0L)LMnc3%I3!&<=+vd=V6cspi$#x~G3)I^F1_^W1+%d(&S95+Iu)UP@wQ}3 zvNe_RPaknP>Q~KFyrZ{7?l|s}VNh?iD(qpJ97c4L6|+ZOPI5|5Se`xRlI4tkCve88{s*|iFTQy6l1px-r68&vh$0dpGN&}afk(J^KSEXx88{w>)*5l#2 zoZmG-NMe7n%SYF^F5MB5l|z3vKB|+RM61!+|Bb^Bgqj zEmqV2tq!cImUZPhX7JaOsN4nHgzI*3W`}$`MaM2WbL^&%>VjF7B2UOCc1ZJx8D!e(#sV^|8S(&!Vq)M1PFEFVnGI80+3$zS-DPu}d%TzivILxo{`?YKvy!iuUW`(i< 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));