diff options
author | KHobbits <rob@khobbits.co.uk> | 2012-12-22 03:36:56 +0000 |
---|---|---|
committer | KHobbits <rob@khobbits.co.uk> | 2012-12-22 03:36:56 +0000 |
commit | c97763c3c8c22830e2db353a38c417dee8ddb2e3 (patch) | |
tree | 4eb44a82c83604e7c917f634b5b9f40e2c44051a | |
parent | ad3e8a3aba3b0114101e8637aff4874570c35240 (diff) | |
download | Essentials-c97763c3c8c22830e2db353a38c417dee8ddb2e3.tar Essentials-c97763c3c8c22830e2db353a38c417dee8ddb2e3.tar.gz Essentials-c97763c3c8c22830e2db353a38c417dee8ddb2e3.tar.lz Essentials-c97763c3c8c22830e2db353a38c417dee8ddb2e3.tar.xz Essentials-c97763c3c8c22830e2db353a38c417dee8ddb2e3.zip |
Make seen status's only show when true.
-rw-r--r-- | Essentials/src/com/earth2me/essentials/commands/Commandseen.java | 27 |
1 files changed, 16 insertions, 11 deletions
diff --git a/Essentials/src/com/earth2me/essentials/commands/Commandseen.java b/Essentials/src/com/earth2me/essentials/commands/Commandseen.java index 5c204fda5..b415108e2 100644 --- a/Essentials/src/com/earth2me/essentials/commands/Commandseen.java +++ b/Essentials/src/com/earth2me/essentials/commands/Commandseen.java @@ -38,17 +38,22 @@ public class Commandseen extends EssentialsCommand User user = getPlayer(server, args, 0); user.setDisplayNick(); sender.sendMessage(_("seenOnline", user.getDisplayName(), Util.formatDateDiff(user.getLastLogin()))); - sender.sendMessage(_("whoisAFK", (user.isAfk() ? _("true") : _("false")))); - sender.sendMessage(_("whoisJail", (user.isJailed() - ? user.getJailTimeout() > 0 - ? Util.formatDateDiff(user.getJailTimeout()) - : _("true") - : _("false")))); - sender.sendMessage(_("whoisMuted", (user.isMuted() - ? user.getMuteTimeout() > 0 - ? Util.formatDateDiff(user.getMuteTimeout()) - : _("true") - : _("false")))); + if (user.isAfk()) + { + sender.sendMessage(_("whoisAFK", _("true"))); + } + if (user.isJailed()) + { + sender.sendMessage(_("whoisJail", (user.getJailTimeout() > 0 + ? Util.formatDateDiff(user.getJailTimeout()) + : _("true")))); + } + if (user.isMuted()) + { + sender.sendMessage(_("whoisMuted", (user.getMuteTimeout() > 0 + ? Util.formatDateDiff(user.getMuteTimeout()) + : _("true")))); + } if (extra) { sender.sendMessage(_("whoisIPAddress", user.getAddress().getAddress().toString())); |