Mute should now correctly block all command input too.

This commit is contained in:
Chiss 2013-11-17 11:04:54 +11:00
parent be4de5f7bb
commit 85a3edc75e

View File

@ -152,6 +152,7 @@ public class Punish extends MiniPlugin
if (client != null && client.IsMuted())
{
event.getPlayer().sendMessage(F.main(GetName(), "Shh, you're muted for " + C.cGreen + UtilTime.convertString(client.GetPunishment(PunishmentSentence.Mute).GetRemaining(), 1, TimeUnit.FIT) + "."));
event.setMessage("");
event.setCancelled(true);
}
}