diff options
author | Bryson Steck <steck.bryson@gmail.com> | 2021-07-21 21:52:25 -0600 |
---|---|---|
committer | Bryson Steck <steck.bryson@gmail.com> | 2021-07-21 21:52:25 -0600 |
commit | 4f0ac642fa3fdbd8ba4237013134f68af72f42a0 (patch) | |
tree | d2e74470953b58c766bb1a48ab86f41c1cb271a4 /src/net/brysonsteck/Resurrection/player | |
parent | 2263e8ddfc5239997138a242fbbfbe38cad88870 (diff) | |
download | resurrection-4f0ac642fa3fdbd8ba4237013134f68af72f42a0.tar resurrection-4f0ac642fa3fdbd8ba4237013134f68af72f42a0.tar.gz resurrection-4f0ac642fa3fdbd8ba4237013134f68af72f42a0.tar.bz2 |
delay teleport to spawn
Diffstat (limited to 'src/net/brysonsteck/Resurrection/player')
-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 7cc8618..d638347 100644 --- a/src/net/brysonsteck/Resurrection/player/PlayerListener.java +++ b/src/net/brysonsteck/Resurrection/player/PlayerListener.java @@ -201,7 +201,6 @@ public class PlayerListener implements Listener { p.setGameMode(GameMode.SPECTATOR); p.sendMessage(ChatColor.RED + "" + ChatColor.BOLD + "YOU HAVE DIED!!"); p.sendMessage(ChatColor.RED + "You will be able to respawn in the next 24 hours."); - p.teleport(spawn); new BukkitRunnable() { @Override public void run() { @@ -212,6 +211,7 @@ public class PlayerListener implements Listener { // invisibility.apply(p); blindness.apply(p); slowness.apply(p); + p.teleport(spawn); } }.runTaskLater(JavaPlugin.getProvidingPlugin(Resurrection.class), 1); } |