summaryrefslogtreecommitdiffstats
path: root/Essentials/src/com/earth2me/essentials/commands/Commandr.java
diff options
context:
space:
mode:
authorChris Ward <chris@chrisgward.com>2013-10-19 19:06:42 +1100
committerKHobbits <rob@khobbits.co.uk>2013-10-19 12:19:39 +0100
commit97d176ea27da958898b3dcb77fe38592c80a3b58 (patch)
treed233fd80af0119b0f286d4a4a5651a43f4f0e201 /Essentials/src/com/earth2me/essentials/commands/Commandr.java
parente25e02d154a57f70b34efb1c4e3858db77202d3d (diff)
downloadEssentials-97d176ea27da958898b3dcb77fe38592c80a3b58.tar
Essentials-97d176ea27da958898b3dcb77fe38592c80a3b58.tar.gz
Essentials-97d176ea27da958898b3dcb77fe38592c80a3b58.tar.lz
Essentials-97d176ea27da958898b3dcb77fe38592c80a3b58.tar.xz
Essentials-97d176ea27da958898b3dcb77fe38592c80a3b58.zip
Make looping commands see vanished players properly
Make /r check player existence in the correct order
Diffstat (limited to 'Essentials/src/com/earth2me/essentials/commands/Commandr.java')
-rw-r--r--Essentials/src/com/earth2me/essentials/commands/Commandr.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/Essentials/src/com/earth2me/essentials/commands/Commandr.java b/Essentials/src/com/earth2me/essentials/commands/Commandr.java
index 4b4de6ff9..1a793556a 100644
--- a/Essentials/src/com/earth2me/essentials/commands/Commandr.java
+++ b/Essentials/src/com/earth2me/essentials/commands/Commandr.java
@@ -44,13 +44,14 @@ public class Commandr extends EssentialsCommand
}
final CommandSource target = replyTo.getReplyTo();
- final String targetName = target.isPlayer() ? target.getPlayer().getDisplayName() : Console.NAME;
if (target == null || (target.isPlayer() && !target.getPlayer().isOnline()))
{
throw new Exception(_("foreverAlone"));
}
+ final String targetName = target.isPlayer() ? target.getPlayer().getDisplayName() : Console.NAME;
+
sender.sendMessage(_("msgFormat", _("me"), targetName, message));
if (target.isPlayer())
{