From bc76e8736671d61940fd380c0b351cd3303bce97 Mon Sep 17 00:00:00 2001 From: KHobbits Date: Sun, 29 Jan 2012 20:57:17 +0000 Subject: Fix boolean fail in /r offline checking. --- 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 7d8ee481d..fe2a4e5b1 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 || ((target instanceof Player) && ((Player)target).isOnline())) + if (target == null || ((target instanceof Player) && !((Player)target).isOnline())) { throw new Exception(_("foreverAlone")); } -- cgit v1.2.3