diff options
author | ementalo <ementalodev@gmx.co.uk> | 2012-06-18 12:57:56 +0100 |
---|---|---|
committer | ementalo <ementalodev@gmx.co.uk> | 2012-06-18 12:57:56 +0100 |
commit | faea8af22e78fbf7a63356d8f2e4b67d9b1d0431 (patch) | |
tree | 3d84e038ae4fdf57835ce33e357f4ce585da09fb | |
parent | 6db7de9c4dbcf474507a8b402af586c970b0d5f6 (diff) | |
download | Essentials-faea8af22e78fbf7a63356d8f2e4b67d9b1d0431.tar Essentials-faea8af22e78fbf7a63356d8f2e4b67d9b1d0431.tar.gz Essentials-faea8af22e78fbf7a63356d8f2e4b67d9b1d0431.tar.lz Essentials-faea8af22e78fbf7a63356d8f2e4b67d9b1d0431.tar.xz Essentials-faea8af22e78fbf7a63356d8f2e4b67d9b1d0431.zip |
Adding mute status to /whois
-rw-r--r-- | Essentials/src/com/earth2me/essentials/commands/Commandwhois.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Essentials/src/com/earth2me/essentials/commands/Commandwhois.java b/Essentials/src/com/earth2me/essentials/commands/Commandwhois.java index e8ad59361..8d49c2776 100644 --- a/Essentials/src/com/earth2me/essentials/commands/Commandwhois.java +++ b/Essentials/src/com/earth2me/essentials/commands/Commandwhois.java @@ -74,6 +74,11 @@ public class Commandwhois extends EssentialsCommand ? DateUtil.formatDateDiff(user.getTimestamp(UserData.TimestampType.JAIL)) : _("true") : _("false")))); + sender.sendMessage(_("whoisMute", (user.getData().isMuted() + ? user.getTimestamp(UserData.TimestampType.MUTE) > 0 + ? DateUtil.formatDateDiff(user.getTimestamp(UserData.TimestampType.MUTE)) + : _("true") + : _("false")))); sender.sendMessage(user.getData().isAfk() ? _("whoisStatusAway") : _("whoisStatusAvailable")); |