This commit is contained in:
Fabian
2021-04-08 19:54:04 +02:00
parent 152a49231d
commit c732d0887b

View File

@@ -70,11 +70,6 @@ namespace ReallifeGamemode.Server.Events
{
temp = Report.Report.listReports[a];
if (!temp.isAssigned())
{
continue;
}
if (temp.getAdmin().Equals(player.Name))
{
Report.Report.listReports.Remove(temp);
@@ -86,10 +81,12 @@ namespace ReallifeGamemode.Server.Events
if (temp.getUser().Equals(player.Name))
{
Report.Report.listReports.Remove(temp);
Player admin = PlayerService.GetPlayerByNameOrId(temp.getAdmin());
if (admin != null)
{
admin.SendChatMessage("!{#008fff}[REPORT]!{#FFFFFF} Chat beendet. Der User hat den Server verlassen");
Report.Report.listReports.Remove(temp);
}
break;
}
}