RAGE Multiplayer 1.1.0-DP Update
/freeze was obselete and removed /unfreeze was obselete and removed /spectate was obselete and removed
This commit is contained in:
@@ -9,13 +9,13 @@ namespace ReallifeGamemode.Server.Job
|
||||
{
|
||||
public abstract class JobBase : Script
|
||||
{
|
||||
public delegate void JobStartHandler(Client player);
|
||||
public delegate void JobStopHandler(Client player);
|
||||
public delegate void JobStartHandler(Player player);
|
||||
public delegate void JobStopHandler(Player player);
|
||||
|
||||
public event JobStartHandler JobStart;
|
||||
public event JobStopHandler JobStop;
|
||||
|
||||
private readonly List<Client> _inJob = new List<Client>();
|
||||
private readonly List<Player> _inJob = new List<Player>();
|
||||
|
||||
public abstract int Id { get; }
|
||||
|
||||
@@ -23,7 +23,7 @@ namespace ReallifeGamemode.Server.Job
|
||||
|
||||
public abstract bool NeedVehicleToStart { get; }
|
||||
|
||||
public void StartJob(Client player)
|
||||
public void StartJob(Player player)
|
||||
{
|
||||
if (_inJob.Contains(player)) return;
|
||||
_inJob.Add(player);
|
||||
@@ -33,7 +33,7 @@ namespace ReallifeGamemode.Server.Job
|
||||
JobStart?.Invoke(player);
|
||||
}
|
||||
|
||||
public void StopJob(Client player, bool quit = false)
|
||||
public void StopJob(Player player, bool quit = false)
|
||||
{
|
||||
if (!_inJob.Contains(player)) return;
|
||||
_inJob.Remove(player);
|
||||
@@ -54,6 +54,6 @@ namespace ReallifeGamemode.Server.Job
|
||||
}
|
||||
}
|
||||
|
||||
public List<Client> GetUsersInJob() => _inJob;
|
||||
public List<Player> GetUsersInJob() => _inJob;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user