Skip to content

Commit

Permalink
delay teleport to spawn
Browse files Browse the repository at this point in the history
  • Loading branch information
Bryson Steck committed Jul 22, 2021
1 parent 2263e8d commit 4f0ac64
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
Binary file modified out/artifacts/Resurrection_jar/Resurrection.jar
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,6 @@ public void onPlayerRespawn(PlayerRespawnEvent e) {
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() {
Expand All @@ -212,6 +211,7 @@ public void run() {
// invisibility.apply(p);
blindness.apply(p);
slowness.apply(p);
p.teleport(spawn);
}
}.runTaskLater(JavaPlugin.getProvidingPlugin(Resurrection.class), 1);
}
Expand Down

0 comments on commit 4f0ac64

Please sign in to comment.