static void ChMod(string [] Input) { if (!Client.IsConnected) { Console.WriteLine("Please connect to a server first."); return; } if (Input == null || Input.Length != 2) { Console.WriteLine("Invalid parameters"); return; } Client.ChMod(Input[0], Input[1]); }