taxifahrer raus mit die viecher
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -25,6 +25,8 @@ namespace ReallifeGamemode.Server.Job
|
||||
|
||||
public override bool NeedVehicleToStart => true;
|
||||
|
||||
public override bool Deactivated => true;
|
||||
|
||||
private static TaxiDriverJob _Instance;
|
||||
|
||||
public TaxiDriverJob()
|
||||
|
||||
@@ -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}");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user