From e7de3a902f6394364b37a46bdcb19b2b862bc998 Mon Sep 17 00:00:00 2001 From: ulumulu1510 Date: Mon, 12 Oct 2015 11:35:46 +0200 Subject: [PATCH] Add visibility check in f status. --- src/com/massivecraft/factions/cmd/CmdFactionsStatus.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/com/massivecraft/factions/cmd/CmdFactionsStatus.java b/src/com/massivecraft/factions/cmd/CmdFactionsStatus.java index d6b290b8..370f5d90 100644 --- a/src/com/massivecraft/factions/cmd/CmdFactionsStatus.java +++ b/src/com/massivecraft/factions/cmd/CmdFactionsStatus.java @@ -101,7 +101,7 @@ public class CmdFactionsStatus extends FactionsCommand // Time long lastActiveMillis = mplayer.getLastActivityMillis() - System.currentTimeMillis(); LinkedHashMap activeTimes = TimeDiffUtil.limit(TimeDiffUtil.unitcounts(lastActiveMillis, TimeUnit.getAllButMillis()), 3); - String lastActive = mplayer.isOnline() ? Txt.parse("Online right now.") : Txt.parse("Last active: " + TimeDiffUtil.formatedMinimal(activeTimes, "")); + String lastActive = mplayer.isOnline(msender) ? Txt.parse("Online right now.") : Txt.parse("Last active: " + TimeDiffUtil.formatedMinimal(activeTimes, "")); return Txt.parse("%s%s %s %s", displayName, whiteSpace, power, lastActive); }