diff options
Diffstat (limited to 'src/net/brysonsteck/Resurrection')
-rw-r--r-- | src/net/brysonsteck/Resurrection/player/PlayerListener.java | 2 |
1 files changed, 1 insertions, 1 deletions
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); |