mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-07-30 17:32:02 +00:00
Fix boolean fail in /r offline checking.
This commit is contained in:
parent
6a5fefb102
commit
bc76e87366
1 changed files with 1 additions and 1 deletions
|
@ -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"));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue