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(' ')