1
0
mirror of https://github.com/essentials/Essentials.git synced 2025-08-06 22:56:41 +02:00

Fix boolean fail in /r offline checking.

This commit is contained in:
KHobbits
2012-01-29 20:57:17 +00:00
parent 67e4828984
commit 9f552f39b3

View File

@@ -53,7 +53,7 @@ public class Commandr extends EssentialsCommand
final CommandSender target = replyTo.getReplyTo(); final CommandSender target = replyTo.getReplyTo();
final String targetName = target instanceof Player ? ((Player)target).getDisplayName() : Console.NAME; 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")); throw new Exception(_("foreverAlone"));
} }