From 8b87049d4db938220096caea2c17f1936f3611ba Mon Sep 17 00:00:00 2001 From: Bryson Steck Date: Tue, 15 Jun 2021 20:34:03 -0600 Subject: moved location getter to runnable --- out/artifacts/Resurrection_jar/Resurrection.jar | Bin 1338965 -> 1339003 bytes .../Resurrection/player/PlayerListener.class | Bin 2622 -> 2558 bytes .../Resurrection/player/PlayerListener.java | 2 +- 3 files changed, 1 insertion(+), 1 deletion(-) diff --git a/out/artifacts/Resurrection_jar/Resurrection.jar b/out/artifacts/Resurrection_jar/Resurrection.jar index af72995..4e5a64f 100644 Binary files a/out/artifacts/Resurrection_jar/Resurrection.jar and b/out/artifacts/Resurrection_jar/Resurrection.jar differ diff --git a/out/production/Resurrection/net/brysonsteck/Resurrection/player/PlayerListener.class b/out/production/Resurrection/net/brysonsteck/Resurrection/player/PlayerListener.class index e05d51b..31bbc3e 100644 Binary files a/out/production/Resurrection/net/brysonsteck/Resurrection/player/PlayerListener.class and b/out/production/Resurrection/net/brysonsteck/Resurrection/player/PlayerListener.class differ diff --git a/src/net/brysonsteck/Resurrection/player/PlayerListener.java b/src/net/brysonsteck/Resurrection/player/PlayerListener.java index caa9454..38a7c33 100644 --- a/src/net/brysonsteck/Resurrection/player/PlayerListener.java +++ b/src/net/brysonsteck/Resurrection/player/PlayerListener.java @@ -49,10 +49,10 @@ public class PlayerListener implements Listener { public void onPlayerRespawn(PlayerRespawnEvent e) { final Player p = e.getPlayer(); p.setGameMode(GameMode.SPECTATOR); - this.spawn = p.getLocation(); new BukkitRunnable() { @Override public void run() { + spawn = p.getLocation(); // PotionEffect invisibility = new PotionEffect(PotionEffectType.INVISIBILITY, 1728000, 10, false); PotionEffect blindness = new PotionEffect(PotionEffectType.BLINDNESS, 1728000, 10, false); PotionEffect slowness = new PotionEffect(PotionEffectType.SLOW, 1728000, 10, false); -- cgit v1.2.3