summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKHobbits <rob@khobbits.co.uk>2012-01-29 02:57:52 +0000
committerKHobbits <rob@khobbits.co.uk>2012-01-29 02:57:52 +0000
commit735f9ce2122ee9284193f34143619c8bcc951ebb (patch)
treea696097e3742e681df3cbda8812c0a135cd76d67
parent8f0350570e331872d399b2846c0a585844a624cc (diff)
downloadEssentials-735f9ce2122ee9284193f34143619c8bcc951ebb.tar
Essentials-735f9ce2122ee9284193f34143619c8bcc951ebb.tar.gz
Essentials-735f9ce2122ee9284193f34143619c8bcc951ebb.tar.lz
Essentials-735f9ce2122ee9284193f34143619c8bcc951ebb.tar.xz
Essentials-735f9ce2122ee9284193f34143619c8bcc951ebb.zip
Make sure player is online when sending a /reply.
-rw-r--r--Essentials/src/com/earth2me/essentials/commands/Commandr.java2
1 files changed, 1 insertions, 1 deletions
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"));
}