summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKHobbits <rob@khobbits.co.uk>2012-12-20 20:37:42 +0000
committerKHobbits <rob@khobbits.co.uk>2012-12-20 20:37:42 +0000
commit6f28540d592c40d9397b39660b394de68b1336b4 (patch)
tree4680a5975950d7910cb2ca6de99276e5479de3b1
parent78666ade2b26d4d4003dfa7640d88001ef2ac9be (diff)
parentce7812502885b10baab019859dfe9a672c540efe (diff)
downloadEssentials-6f28540d592c40d9397b39660b394de68b1336b4.tar
Essentials-6f28540d592c40d9397b39660b394de68b1336b4.tar.gz
Essentials-6f28540d592c40d9397b39660b394de68b1336b4.tar.lz
Essentials-6f28540d592c40d9397b39660b394de68b1336b4.tar.xz
Essentials-6f28540d592c40d9397b39660b394de68b1336b4.zip
Merge branch 'release' of github.com:essentials/Essentials into 2.9
-rw-r--r--Essentials/src/com/earth2me/essentials/commands/Commandseen.java19
1 files changed, 15 insertions, 4 deletions
diff --git a/Essentials/src/com/earth2me/essentials/commands/Commandseen.java b/Essentials/src/com/earth2me/essentials/commands/Commandseen.java
index 24f1f9c41..fc5a1f033 100644
--- a/Essentials/src/com/earth2me/essentials/commands/Commandseen.java
+++ b/Essentials/src/com/earth2me/essentials/commands/Commandseen.java
@@ -35,12 +35,23 @@ public class Commandseen extends EssentialsCommand
}
try
{
- User player = getPlayer(server, args, 0);
- player.setDisplayNick();
- sender.sendMessage(_("seenOnline", player.getDisplayName(), Util.formatDateDiff(player.getLastLogin())));
+ 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 (extra)
{
- sender.sendMessage(_("whoisIPAddress", player.getAddress().getAddress().toString()));
+ sender.sendMessage(_("whoisIPAddress", user.getAddress().getAddress().toString()));
}
}
catch (NoSuchFieldException e)