public string[] Execute(string[] arguments) { List <string> output = new List <string>(); if (client.connected) { string chatMsg = String.Join(" ", arguments, 1, arguments.Length - 1); client.Chat(chatMsg); output.Add(client.LocalPlayer.PlayerName + ": " + chatMsg); } else { output.Add("Not connected to a server"); } return(output.ToArray()); }