diff options
author | Bryson Steck <steck.bryson@gmail.com> | 2021-06-15 20:34:03 -0600 |
---|---|---|
committer | Bryson Steck <steck.bryson@gmail.com> | 2021-06-15 20:34:03 -0600 |
commit | 8b87049d4db938220096caea2c17f1936f3611ba (patch) | |
tree | 4bab0c8d0225020e77ee5a678d4e479ebb8dc9a3 | |
parent | 8d8371290ed06aa8f59e308ff322fd2e7e86f4dc (diff) | |
download | resurrection-8b87049d4db938220096caea2c17f1936f3611ba.tar resurrection-8b87049d4db938220096caea2c17f1936f3611ba.tar.gz resurrection-8b87049d4db938220096caea2c17f1936f3611ba.tar.bz2 |
moved location getter to runnable
-rw-r--r-- | out/artifacts/Resurrection_jar/Resurrection.jar | bin | 1338965 -> 1339003 bytes | |||
-rw-r--r-- | out/production/Resurrection/net/brysonsteck/Resurrection/player/PlayerListener.class | bin | 2622 -> 2558 bytes | |||
-rw-r--r-- | src/net/brysonsteck/Resurrection/player/PlayerListener.java | 2 |
3 files changed, 1 insertions, 1 deletions
diff --git a/out/artifacts/Resurrection_jar/Resurrection.jar b/out/artifacts/Resurrection_jar/Resurrection.jar Binary files differindex af72995..4e5a64f 100644 --- a/out/artifacts/Resurrection_jar/Resurrection.jar +++ b/out/artifacts/Resurrection_jar/Resurrection.jar diff --git a/out/production/Resurrection/net/brysonsteck/Resurrection/player/PlayerListener.class b/out/production/Resurrection/net/brysonsteck/Resurrection/player/PlayerListener.class Binary files differindex e05d51b..31bbc3e 100644 --- a/out/production/Resurrection/net/brysonsteck/Resurrection/player/PlayerListener.class +++ b/out/production/Resurrection/net/brysonsteck/Resurrection/player/PlayerListener.class 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); |