forgot to update resurrect command

This commit is contained in:
Bryson Steck 2021-07-21 21:48:54 -06:00
parent a227af7753
commit aa1e00af1c
2 changed files with 6 additions and 0 deletions

View file

@ -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.");