testing bed respawn
This commit is contained in:
parent
7caa93014e
commit
a227af7753
2 changed files with 3 additions and 0 deletions
Binary file not shown.
|
@ -186,6 +186,9 @@ public class PlayerListener implements Listener {
|
|||
p.playSound(p.getLocation(), Sound.ENTITY_ENDER_DRAGON_GROWL, 1, 0);
|
||||
}
|
||||
Bukkit.broadcastMessage(ChatColor.YELLOW +""+ ChatColor.BOLD + p.getDisplayName() + " has resurrected!");
|
||||
if (p.getBedSpawnLocation() != null) {
|
||||
p.teleport(p.getBedSpawnLocation());
|
||||
}
|
||||
}
|
||||
}.runTaskLater(JavaPlugin.getProvidingPlugin(Resurrection.class), 1728000);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue