diff options
author | Chris Ward <chris@chrisgward.com> | 2013-01-09 19:17:11 +1100 |
---|---|---|
committer | Chris Ward <chris@chrisgward.com> | 2013-01-09 19:17:11 +1100 |
commit | 556f218cbd15329cfeff02929108ea63997b28fe (patch) | |
tree | f2dbc6ba945a6ff5448336c2fe234d6a10b953e1 | |
parent | d19ffc6cc0192e6f37f913a1a08fc838ed5c2717 (diff) | |
download | Essentials-556f218cbd15329cfeff02929108ea63997b28fe.tar Essentials-556f218cbd15329cfeff02929108ea63997b28fe.tar.gz Essentials-556f218cbd15329cfeff02929108ea63997b28fe.tar.lz Essentials-556f218cbd15329cfeff02929108ea63997b28fe.tar.xz Essentials-556f218cbd15329cfeff02929108ea63997b28fe.zip |
Add a little bit of extra information to /seen, this will show when user is online.
ce7812502885b10baab019859dfe9a672c540efe
-rw-r--r-- | Essentials/src/net/ess3/commands/Commandseen.java | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/Essentials/src/net/ess3/commands/Commandseen.java b/Essentials/src/net/ess3/commands/Commandseen.java index aca131cd6..4eb10ef6f 100644 --- a/Essentials/src/net/ess3/commands/Commandseen.java +++ b/Essentials/src/net/ess3/commands/Commandseen.java @@ -32,7 +32,19 @@ public class Commandseen extends EssentialsCommand try { final IUser u = ess.getUserMap().matchUserExcludingHidden(args[0], getPlayerOrNull(sender)); + u.setDisplayNick(); sender.sendMessage(_("seenOnline", u.getPlayer().getDisplayName(), DateUtil.formatDateDiff(u.getTimestamp(TimestampType.LOGIN)))); + sender.sendMessage(_("whoisAFK", (u.getData().isAfk() ? _("true") : _("false")))); + sender.sendMessage(_("whoisJail", (u.getData().isJailed() + ? u.getTimestamp(TimestampType.JAIL) > 0 + ? DateUtil.formatDateDiff(u.getTimestamp(TimestampType.JAIL)) + : _("true") + : _("false")))); + sender.sendMessage(_("whoisMuted", (u.getData().isMuted() + ? u.getTimestamp(TimestampType.MUTE) > 0 + ? DateUtil.formatDateDiff(u.getTimestamp(TimestampType.MUTE)) + : _("true") + : _("false")))); } catch (PlayerNotFoundException e) { |