aboutsummaryrefslogtreecommitdiff
path: root/src/net/brysonsteck/Resurrection/commands/CommandHowLong.java
diff options
context:
space:
mode:
authorBryson Steck <steck.bryson@gmail.com>2021-07-19 18:14:51 -0600
committerBryson Steck <steck.bryson@gmail.com>2021-07-19 18:14:51 -0600
commit2be09b6fbc24a64bd98ecbb979e2c2e35c7af3d9 (patch)
treee48c39af74e4f5ae19d0aec4a41831bc4eeeb637 /src/net/brysonsteck/Resurrection/commands/CommandHowLong.java
parent9715546f294083966e972e541e7ad0dea2b78533 (diff)
downloadresurrection-2be09b6fbc24a64bd98ecbb979e2c2e35c7af3d9.tar
resurrection-2be09b6fbc24a64bd98ecbb979e2c2e35c7af3d9.tar.gz
resurrection-2be09b6fbc24a64bd98ecbb979e2c2e35c7af3d9.tar.bz2
program exits if playerdata file creation fails
Diffstat (limited to 'src/net/brysonsteck/Resurrection/commands/CommandHowLong.java')
-rw-r--r--src/net/brysonsteck/Resurrection/commands/CommandHowLong.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/net/brysonsteck/Resurrection/commands/CommandHowLong.java b/src/net/brysonsteck/Resurrection/commands/CommandHowLong.java
index ecb955b..d4c2360 100644
--- a/src/net/brysonsteck/Resurrection/commands/CommandHowLong.java
+++ b/src/net/brysonsteck/Resurrection/commands/CommandHowLong.java
@@ -53,6 +53,12 @@ public class CommandHowLong implements CommandExecutor {
commandSender.sendMessage(p.getDisplayName() + " will respawn in " + timeCheck.formatTime());
}
return true;
+ } else {
+ if (self) {
+ commandSender.sendMessage("You aren't dead, dummy.");
+ } else {
+ commandSender.sendMessage("ERROR: " + p.getDisplayName() + " is not dead!");
+ }
}
}
}