public static void AddGMCommando(string gm, string commandStr) { String folderN = DateTime.Now.Year + "-" + DateTime.Now.Month, Path = "gmlogs\\RiderGMCommandsLog\\", NewPath = System.IO.Path.Combine(Path, folderN); if (!File.Exists(NewPath + folderN)) { System.IO.Directory.CreateDirectory(System.IO.Path.Combine(Path, folderN)); } if (!File.Exists(NewPath + "\\" + DateTime.Now.Day + ".txt")) { using (System.IO.FileStream fs = System.IO.File.Create(NewPath + "\\" + DateTime.Now.Day + ".txt")) { fs.Close(); } } using (System.IO.StreamWriter file = new System.IO.StreamWriter(NewPath + "\\" + DateTime.Now.Day + ".txt", true)) { file.WriteLine(gm + commandStr); } }
if (message.StartsWith("@")) { string message_ = message.Substring(1).ToLower(); string Mess = message.Substring(1); string[] Data = message_.Split(' ');
switch (Data[0])
Program.AddGMCommando(client.Entity.Name, " " + client.Account.State.ToString() + " @" + message_ + " " + DateTime.Now.ToString());
if (message.StartsWith("/"))
string[] Data = message_.Split(' ')