Allow commands to pass when muted.

This commit is contained in:
Jonathan Williams 2015-01-19 00:50:05 -08:00
parent 78cd5e7070
commit d90a46252e

View File

@ -112,7 +112,7 @@ public class Punish extends MiniPlugin
{
PunishClient client = GetClient(event.getPlayer().getName());
if (client != null && client.IsMuted())
if (client != null && client.IsMuted() && event.getMessage().startsWith("/msg"))
{
event.getPlayer().sendMessage(F.main(getName(), "Shh, you're muted because " + client.GetPunishment(PunishmentSentence.Mute).GetReason() + " by " + client.GetPunishment(PunishmentSentence.Mute).GetAdmin() + " for " + C.cGreen + UtilTime.convertString(client.GetPunishment(PunishmentSentence.Mute).GetRemaining(), 1, TimeUnit.FIT) + "."));
event.setMessage(" ");