public override void Execute(Level level) { if (level.GetAccountPrivileges() >= GetRequiredAccountPrivileges()) { if (m_vArgs.Length >= 2) { try { long id = Convert.ToInt64(m_vArgs[1]); var l = ResourcesManager.GetPlayer(id); if (ResourcesManager.IsPlayerOnline(l)) { var p = new BanChatTrigger(l.GetClient()); p.SetCode(999999999); PacketManager.ProcessOutgoingPacket(p); } else { Debugger.WriteLine("Chat Mute failed: id " + id + " not found"); } } catch (Exception ex) { Debugger.WriteLine("Chat Mute failed with error: " + ex.ToString()); } } } else { SendCommandFailedMessage(level.GetClient()); } }