From 2be09b6fbc24a64bd98ecbb979e2c2e35c7af3d9 Mon Sep 17 00:00:00 2001 From: Bryson Steck Date: Mon, 19 Jul 2021 18:14:51 -0600 Subject: program exits if playerdata file creation fails --- src/net/brysonsteck/Resurrection/commands/CommandHowLong.java | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/net/brysonsteck/Resurrection/commands') 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!"); + } } } } -- cgit v1.2.3