From 735f9ce2122ee9284193f34143619c8bcc951ebb Mon Sep 17 00:00:00 2001 From: KHobbits Date: Sun, 29 Jan 2012 02:57:52 +0000 Subject: [PATCH] Make sure player is online when sending a /reply. --- Essentials/src/com/earth2me/essentials/commands/Commandr.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Essentials/src/com/earth2me/essentials/commands/Commandr.java b/Essentials/src/com/earth2me/essentials/commands/Commandr.java index 7ef012d0d..7d8ee481d 100644 --- a/Essentials/src/com/earth2me/essentials/commands/Commandr.java +++ b/Essentials/src/com/earth2me/essentials/commands/Commandr.java @@ -53,7 +53,7 @@ public class Commandr extends EssentialsCommand final CommandSender target = replyTo.getReplyTo(); final String targetName = target instanceof Player ? ((Player)target).getDisplayName() : Console.NAME; - if (target == null) + if (target == null || ((target instanceof Player) && ((Player)target).isOnline())) { throw new Exception(_("foreverAlone")); }