diff options
author | Bryson Steck <steck.bryson@gmail.com> | 2021-07-21 21:46:55 -0600 |
---|---|---|
committer | Bryson Steck <steck.bryson@gmail.com> | 2021-07-21 21:46:55 -0600 |
commit | a227af77534486dcebf583b586c581be18ff78e7 (patch) | |
tree | 6762b3fb4627c90869da5c088ddee281b7d22606 /src/net | |
parent | 7caa93014ef353d13c143c592c4b5110cd6d49ff (diff) | |
download | resurrection-a227af77534486dcebf583b586c581be18ff78e7.tar resurrection-a227af77534486dcebf583b586c581be18ff78e7.tar.gz resurrection-a227af77534486dcebf583b586c581be18ff78e7.tar.bz2 |
testing bed respawn
Diffstat (limited to 'src/net')
-rw-r--r-- | src/net/brysonsteck/Resurrection/player/PlayerListener.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/net/brysonsteck/Resurrection/player/PlayerListener.java b/src/net/brysonsteck/Resurrection/player/PlayerListener.java index 3b23c03..2b1fc7a 100644 --- a/src/net/brysonsteck/Resurrection/player/PlayerListener.java +++ b/src/net/brysonsteck/Resurrection/player/PlayerListener.java @@ -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); } |