delay teleport to spawn

This commit is contained in:
Bryson Steck 2021-07-21 21:52:25 -06:00
parent 2263e8ddfc
commit 4f0ac642fa
2 changed files with 1 additions and 1 deletions

View file

@ -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);
}