testing new check for #4

This commit is contained in:
Bryson Steck 2021-12-22 21:40:39 -07:00
parent dcc89e05ba
commit 7aa5af0920
2 changed files with 6 additions and 0 deletions

View file

@ -57,7 +57,13 @@ public class PlayerListener implements Listener {
boolean dead = Boolean.parseBoolean(playerSplit[1]);
timeToResurrection = Long.parseLong(playerSplit[2]);
if (timeToResurrection < System.currentTimeMillis()) {
dead = false;
timeToResurrection = 0;
}
if (!dead) {
if (DEBUG) {
Bukkit.broadcastMessage(ChatColor.YELLOW +""+ ChatColor.BOLD + "[Res. DEBUG]: Player " + p.getDisplayName() + " is not dead; making sure they are in survival");
}