+testausgaben

This commit is contained in:
2019-09-02 21:21:39 +02:00
parent a188392de3
commit 68b7fd17a8
2 changed files with 11 additions and 5 deletions

View File

@@ -72,7 +72,7 @@ namespace ReallifeGamemode.Server.Report
ReportManage temp = listReports[a];
if (temp.getUser().Equals(player.Name))
{
listReports[a].setAdmin(admin.Name);
listReports[a].assign(admin.Name);
break;
}
}
@@ -122,12 +122,12 @@ namespace ReallifeGamemode.Server.Report
}
[RemoteEvent("requestReport")]
public void RequestReport(Client user, dynamic data, string type)
public void RequestReport(Client user, string data, string type)
{
if (type == "Ticket Report")
{
ChatService.BroadcastAdmin("Eingehendes Ticket von " + user.Name + ": " + data + " (Benutze /showtickets)", AdminLevel.ADMIN);
ReportManage ticket = new ReportManage(user.Name, user.Name);
ReportManage ticket = new ReportManage(user.Name, data);
listReports.Add(ticket);
}
if (type == "Quick Report")
@@ -145,13 +145,15 @@ namespace ReallifeGamemode.Server.Report
{
ReportManage temp = listReports[a];
ChatService.Broadcast("DEB:" + temp.getUser() + " + " + player.Name);
if (temp.getUser().Equals(player.Name))
{
ChatService.Broadcast("Ticket von " + player.Name + " gelöscht!");
ChatService.BroadcastAdmin(user.Name + " hat das Ticket von " + player.Name + " gelöscht", AdminLevel.ADMIN);
listReports.Remove(temp);
}
}
ChatService.BroadcastAdmin(user.Name + " hat das Ticket von " + player.Name + " gelöscht", AdminLevel.ADMIN);
}
}
}