Add RefuseCollector Job and other misc
This commit is contained in:
@@ -261,7 +261,7 @@ namespace ReallifeGamemode.Server.Managers
|
||||
{
|
||||
ServerVehicle sVeh = veh.GetServerVehicle();
|
||||
if (sVeh == null) return;
|
||||
if (sVeh is JobVehicle jV && jV.JobId == 1) // Spieler steigt in Taxi aus
|
||||
if (sVeh is JobVehicle jV && jV.JobId == 1) // Spieler steigt vom Taxi aus
|
||||
{
|
||||
var taxiJob = JobManager.GetJob<TaxiDriverJob>();
|
||||
if (veh.Occupants.Count == 0) return;
|
||||
|
||||
@@ -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 =>
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user