From faea8af22e78fbf7a63356d8f2e4b67d9b1d0431 Mon Sep 17 00:00:00 2001 From: ementalo Date: Mon, 18 Jun 2012 12:57:56 +0100 Subject: [PATCH] Adding mute status to /whois --- .../src/com/earth2me/essentials/commands/Commandwhois.java | 5 +++++ 1 file changed, 5 insertions(+) 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"));