delay teleport to spawn
This commit is contained in:
parent
2263e8ddfc
commit
4f0ac642fa
2 changed files with 1 additions and 1 deletions
Binary file not shown.
|
@ -201,7 +201,6 @@ public class PlayerListener implements Listener {
|
||||||
p.setGameMode(GameMode.SPECTATOR);
|
p.setGameMode(GameMode.SPECTATOR);
|
||||||
p.sendMessage(ChatColor.RED + "" + ChatColor.BOLD + "YOU HAVE DIED!!");
|
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.sendMessage(ChatColor.RED + "You will be able to respawn in the next 24 hours.");
|
||||||
p.teleport(spawn);
|
|
||||||
new BukkitRunnable() {
|
new BukkitRunnable() {
|
||||||
@Override
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
|
@ -212,6 +211,7 @@ public class PlayerListener implements Listener {
|
||||||
// invisibility.apply(p);
|
// invisibility.apply(p);
|
||||||
blindness.apply(p);
|
blindness.apply(p);
|
||||||
slowness.apply(p);
|
slowness.apply(p);
|
||||||
|
p.teleport(spawn);
|
||||||
}
|
}
|
||||||
}.runTaskLater(JavaPlugin.getProvidingPlugin(Resurrection.class), 1);
|
}.runTaskLater(JavaPlugin.getProvidingPlugin(Resurrection.class), 1);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue