private static void Process_Report(Player client, string[] command) { // This doesn't need to be a GM Only command at the moment. Players can use the /report command to report bugs and/or missing NPCs/features. (e.g. /report Conductress in AC is missing) //if (client.Account.Permission < PlayerPermission.GM) // return; try { var report = new Database.Domain.DbBugReport(); report.Reporter = client.Name; report.Description = string.Join(" ", command, 1, command.Length - 1); report.ReportedAt = DateTime.Now; Database.ServerDatabase.Context.BugReports.Add(report); client.SendMessage("Thank you for the report! We will look into this as soon as possible."); } catch (Exception p) { Console.WriteLine(p); } }
private static void Process_Report(Player client, string[] command) { if (client.Account.Permission < PlayerPermission.GM) { return; } try { var report = new Database.Domain.DbBugReport(); report.Reporter = client.Name; report.Description = string.Join(" ", command, 1, command.Length - 1); report.ReportedAt = DateTime.Now; Database.ServerDatabase.Context.BugReports.Add(report); client.SendMessage("Bug report has been added successfully!"); } catch (Exception p) { Console.WriteLine(p); } }