Add RefuseCollector Job and other misc

This commit is contained in:
Siga
2020-04-04 18:33:20 +02:00
parent 69a4ab5d22
commit c871805430
24 changed files with 2251 additions and 104 deletions

View File

@@ -722,12 +722,8 @@ namespace ReallifeGamemode.Server.Managers
private static readonly Dictionary<NetHandle, Vector3> lastPositions = new Dictionary<NetHandle, Vector3>();
private static DateTime lastSave = DateTime.UtcNow;
public static void StartTimer()
public static void CheckEnabledMods()
{
Timer timer = new Timer(500);
timer.Elapsed += VehicleTimerTick;
timer.Start();
foreach (var name in _enabledMods)
{
if (_enabledMods.Where(x => x == name).Count() != 1)
@@ -737,7 +733,7 @@ namespace ReallifeGamemode.Server.Managers
}
}
private static void VehicleTimerTick(object sender, ElapsedEventArgs e)
public static void VehicleTimerTick()
{
NAPI.Pools.GetAllVehicles().ForEach(v =>
{