Allow commands to pass when muted.
This commit is contained in:
parent
78cd5e7070
commit
d90a46252e
@ -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(" ");
|
||||
|
Loading…
Reference in New Issue
Block a user