Add visibility check in f status.
This commit is contained in:
parent
b2c7d0b7b7
commit
e7de3a902f
@ -101,7 +101,7 @@ public class CmdFactionsStatus extends FactionsCommand
|
|||||||
// Time
|
// Time
|
||||||
long lastActiveMillis = mplayer.getLastActivityMillis() - System.currentTimeMillis();
|
long lastActiveMillis = mplayer.getLastActivityMillis() - System.currentTimeMillis();
|
||||||
LinkedHashMap<TimeUnit, Long> activeTimes = TimeDiffUtil.limit(TimeDiffUtil.unitcounts(lastActiveMillis, TimeUnit.getAllButMillis()), 3);
|
LinkedHashMap<TimeUnit, Long> activeTimes = TimeDiffUtil.limit(TimeDiffUtil.unitcounts(lastActiveMillis, TimeUnit.getAllButMillis()), 3);
|
||||||
String lastActive = mplayer.isOnline() ? Txt.parse("<lime>Online right now.") : Txt.parse("<i>Last active: " + TimeDiffUtil.formatedMinimal(activeTimes, "<i>"));
|
String lastActive = mplayer.isOnline(msender) ? Txt.parse("<lime>Online right now.") : Txt.parse("<i>Last active: " + TimeDiffUtil.formatedMinimal(activeTimes, "<i>"));
|
||||||
|
|
||||||
return Txt.parse("%s%s %s %s", displayName, whiteSpace, power, lastActive);
|
return Txt.parse("%s%s %s %s", displayName, whiteSpace, power, lastActive);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user