aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBryson Steck <steck.bryson@gmail.com>2021-12-22 21:40:39 -0700
committerBryson Steck <steck.bryson@gmail.com>2021-12-22 21:40:39 -0700
commit7aa5af0920d899dec4bfb71d365afd5420dbc692 (patch)
tree91455bcb2d63696e3126fdc34e5a81d8ccc8d5fa
parentdcc89e05ba84100fbaf930bef5bc01af25b7bc73 (diff)
downloadresurrection-7aa5af0920d899dec4bfb71d365afd5420dbc692.tar
resurrection-7aa5af0920d899dec4bfb71d365afd5420dbc692.tar.gz
resurrection-7aa5af0920d899dec4bfb71d365afd5420dbc692.tar.bz2
testing new check for #4
-rw-r--r--out/artifacts/Resurrection_jar/Resurrection.jarbin1605889 -> 1606068 bytes
-rw-r--r--src/net/brysonsteck/Resurrection/player/PlayerListener.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 8beee52..473cebc 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 a930417..8f68d2f 100644
--- a/src/net/brysonsteck/Resurrection/player/PlayerListener.java
+++ b/src/net/brysonsteck/Resurrection/player/PlayerListener.java
@@ -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");
}