taxifahrer raus mit die viecher

This commit is contained in:
hydrant
2021-04-02 23:52:34 +02:00
parent df1a29ae99
commit 96b43b6f8c
3 changed files with 10 additions and 0 deletions

View File

@@ -28,6 +28,8 @@ namespace ReallifeGamemode.Server.Job
public abstract bool NeedVehicleToStart { get; }
public virtual bool Deactivated => false;
public void StartJob(Player player)
{
if (_inJob.Contains(player)) return;

View File

@@ -25,6 +25,8 @@ namespace ReallifeGamemode.Server.Job
public override bool NeedVehicleToStart => true;
public override bool Deactivated => true;
private static TaxiDriverJob _Instance;
public TaxiDriverJob()

View File

@@ -34,6 +34,12 @@ namespace ReallifeGamemode.Server.Managers
{
throw new InvalidOperationException($"Double Job ID found: {instance.Id} | {instance.Name}");
}
if (instance.Deactivated)
{
NAPI.Util.ConsoleOutput("Job {0} is deactivated", instance.Name);
continue;
}
_jobs.Add(instance);
NAPI.Util.ConsoleOutput($"Loading job {instance.Name}");
}