aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBryson Steck <steck.bryson@gmail.com>2021-07-21 21:48:54 -0600
committerBryson Steck <steck.bryson@gmail.com>2021-07-21 21:48:54 -0600
commitaa1e00af1c3f290e0802e87bd01f105da8c94cd1 (patch)
treefc8f039865e4d2d9a14c809225110df7d5b0d22a
parenta227af77534486dcebf583b586c581be18ff78e7 (diff)
downloadresurrection-aa1e00af1c3f290e0802e87bd01f105da8c94cd1.tar
resurrection-aa1e00af1c3f290e0802e87bd01f105da8c94cd1.tar.gz
resurrection-aa1e00af1c3f290e0802e87bd01f105da8c94cd1.tar.bz2
forgot to update resurrect command
-rw-r--r--out/artifacts/Resurrection_jar/Resurrection.jarbin1352758 -> 1352839 bytes
-rw-r--r--src/net/brysonsteck/Resurrection/commands/CommandResurrect.java6
2 files changed, 6 insertions, 0 deletions
diff --git a/out/artifacts/Resurrection_jar/Resurrection.jar b/out/artifacts/Resurrection_jar/Resurrection.jar
index a3741f6..ae2767d 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/commands/CommandResurrect.java b/src/net/brysonsteck/Resurrection/commands/CommandResurrect.java
index 75c280d..b573349 100644
--- a/src/net/brysonsteck/Resurrection/commands/CommandResurrect.java
+++ b/src/net/brysonsteck/Resurrection/commands/CommandResurrect.java
@@ -33,6 +33,9 @@ public class CommandResurrect implements CommandExecutor {
}
Bukkit.broadcastMessage(ChatColor.YELLOW +""+ ChatColor.BOLD + strings[0] + " has been resurrected manually by an admin!");
removeDeath(resurrectPlayer);
+ if (p.getBedSpawnLocation() != null) {
+ p.teleport(p.getBedSpawnLocation());
+ }
return true;
} else {
p.sendMessage(ChatColor.RED + strings[0] + " is not dead! Failed to resurrect.");
@@ -59,6 +62,9 @@ public class CommandResurrect implements CommandExecutor {
}
Bukkit.broadcastMessage(strings[0] + " has been resurrected manually by an admin!");
removeDeath(resurrectPlayer);
+ if (resurrectPlayer.getBedSpawnLocation() != null) {
+ resurrectPlayer.teleport(resurrectPlayer.getBedSpawnLocation());
+ }
return true;
} else {
System.out.println(strings[0] + " is not dead! Failed to resurrect.");