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 | |
parent | 7caa93014ef353d13c143c592c4b5110cd6d49ff (diff) | |
download | resurrection-a227af77534486dcebf583b586c581be18ff78e7.tar resurrection-a227af77534486dcebf583b586c581be18ff78e7.tar.gz resurrection-a227af77534486dcebf583b586c581be18ff78e7.tar.bz2 |
testing bed respawn
-rw-r--r-- | out/artifacts/Resurrection_jar/Resurrection.jar | bin | 1352692 -> 1352758 bytes | |||
-rw-r--r-- | src/net/brysonsteck/Resurrection/player/PlayerListener.java | 3 |
2 files changed, 3 insertions, 0 deletions
diff --git a/out/artifacts/Resurrection_jar/Resurrection.jar b/out/artifacts/Resurrection_jar/Resurrection.jar Binary files differindex bada621..a3741f6 100644 --- a/out/artifacts/Resurrection_jar/Resurrection.jar +++ b/out/artifacts/Resurrection_jar/Resurrection.jar 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); } |