testing bed respawn

This commit is contained in:
Bryson Steck 2021-07-21 21:46:55 -06:00
parent 7caa93014e
commit a227af7753
2 changed files with 3 additions and 0 deletions

View file

@ -186,6 +186,9 @@ public class PlayerListener implements Listener {
p.playSound(p.getLocation(), Sound.ENTITY_ENDER_DRAGON_GROWL, 1, 0); p.playSound(p.getLocation(), Sound.ENTITY_ENDER_DRAGON_GROWL, 1, 0);
} }
Bukkit.broadcastMessage(ChatColor.YELLOW +""+ ChatColor.BOLD + p.getDisplayName() + " has resurrected!"); Bukkit.broadcastMessage(ChatColor.YELLOW +""+ ChatColor.BOLD + p.getDisplayName() + " has resurrected!");
if (p.getBedSpawnLocation() != null) {
p.teleport(p.getBedSpawnLocation());
}
} }
}.runTaskLater(JavaPlugin.getProvidingPlugin(Resurrection.class), 1728000); }.runTaskLater(JavaPlugin.getProvidingPlugin(Resurrection.class), 1728000);
} }