Skip to content

Commit

Permalink
testing new check for #4
Browse files Browse the repository at this point in the history
  • Loading branch information
Bryson Steck committed Dec 23, 2021
1 parent dcc89e0 commit 7aa5af0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Binary file modified out/artifacts/Resurrection_jar/Resurrection.jar
Binary file not shown.
6 changes: 6 additions & 0 deletions src/net/brysonsteck/Resurrection/player/PlayerListener.java
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,13 @@ public void onJoin(PlayerJoinEvent e) {
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");
}
Expand Down

0 comments on commit 7aa5af0

Please sign in to comment.