report quit wenn admin / user disconnect
This commit is contained in:
@@ -13,7 +13,7 @@ using ReallifeGamemode.Server.Util;
|
|||||||
using ReallifeGamemode.Services;
|
using ReallifeGamemode.Services;
|
||||||
using ReallifeGamemode.Server.Services;
|
using ReallifeGamemode.Server.Services;
|
||||||
using ReallifeGamemode.Server.Types;
|
using ReallifeGamemode.Server.Types;
|
||||||
|
using ReallifeGamemode.Server.Report;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @overview Life of German Reallife - Event Login (Login.cs)
|
* @overview Life of German Reallife - Event Login (Login.cs)
|
||||||
@@ -61,6 +61,30 @@ namespace ReallifeGamemode.Server.Events
|
|||||||
taxiJob.TaxiContracts.Remove(taxiContract);
|
taxiJob.TaxiContracts.Remove(taxiContract);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
var listReports = Report.Report.listReports;
|
||||||
|
ReportManage temp;
|
||||||
|
for (int a = 0; a < listReports.Count; a++)
|
||||||
|
{
|
||||||
|
temp = listReports[a];
|
||||||
|
if (temp.getAdmin().Equals(player.Name))
|
||||||
|
{
|
||||||
|
listReports.Remove(temp);
|
||||||
|
|
||||||
|
Player user = PlayerService.GetPlayerByNameOrId(temp.getUser());
|
||||||
|
user.SendChatMessage("!{#008fff}[REPORT]!{#FFFFFF} Chat beendet. Der Admin hat den Server verlassen");
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (temp.getUser().Equals(player.Name))
|
||||||
|
{
|
||||||
|
listReports.Remove(temp);
|
||||||
|
|
||||||
|
Player admin = PlayerService.GetPlayerByNameOrId(temp.getAdmin());
|
||||||
|
admin.SendChatMessage("!{#008fff}[REPORT]!{#FFFFFF} Chat beendet. Der User hat den Server verlassen");
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
//Vehicle LastVehicle = player.GetData<Vehicle>("LastVehicle");
|
//Vehicle LastVehicle = player.GetData<Vehicle>("LastVehicle");
|
||||||
JobBase job = JobManager.GetJob(player.GetUser().JobId ?? -1);
|
JobBase job = JobManager.GetJob(player.GetUser().JobId ?? -1);
|
||||||
if (job != null)
|
if (job != null)
|
||||||
|
|||||||
Reference in New Issue
Block a user