aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--out/artifacts/Resurrection_jar/Resurrection.jarbin1352692 -> 1352758 bytes
-rw-r--r--src/net/brysonsteck/Resurrection/player/PlayerListener.java3
2 files changed, 3 insertions, 0 deletions
diff --git a/out/artifacts/Resurrection_jar/Resurrection.jar b/out/artifacts/Resurrection_jar/Resurrection.jar
index bada621..a3741f6 100644
--- a/out/artifacts/Resurrection_jar/Resurrection.jar
+++ b/out/artifacts/Resurrection_jar/Resurrection.jar
Binary files differ
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);
}