fix report

This commit is contained in:
hydrant
2019-09-03 20:15:46 +02:00
parent 616516fa3a
commit bda4342076
2 changed files with 12 additions and 14 deletions

View File

@@ -165,6 +165,7 @@ namespace ReallifeGamemode.Server.Report
[RemoteEvent("requestReport")]
public void RequestReport(Client user, string type, string data)
{
string text = JsonConvert.DeserializeObject<string>(data);
if (type == "Ticket Report")
{
ReportManage temp = null;
@@ -184,12 +185,12 @@ namespace ReallifeGamemode.Server.Report
}
ChatService.SendMessage(user, "!{#addc8d}Dein Ticket wurde abgeschickt");
ChatService.SendMessage(user, "!{#addc8d}Momentan sind " + UserHelper.dutyAdmins.Count + " Admins verfügbar");
ChatService.BroadcastDutyAdmin("!{#008fff}[TICKET]!{#FFFFFF} Eingehendes Ticket von~y~ " + user.Name + ": " + data + " (Benutze /showtickets)");
ReportManage ticket = new ReportManage(user.Name, data);
ChatService.BroadcastDutyAdmin("!{#008fff}[TICKET]!{#FFFFFF} Eingehendes Ticket von~y~ " + user.Name + ": " + text + " (Benutze /showtickets)");
ReportManage ticket = new ReportManage(user.Name, text);
listReports.Add(ticket);
}
if (type == "Quick Report")
ChatService.BroadcastAdmin("!{#008fff}[QR] ~y~" + user.Name + "~w~: " + data, AdminLevel.SUPPORTER);
ChatService.BroadcastAdmin("!{#008fff}[QR] ~y~" + user.Name + "~w~: " + text, AdminLevel.SUPPORTER);
}
[RemoteEvent("deleteReport")]