Add RefuseCollector Job and other misc
This commit is contained in:
@@ -20,14 +20,14 @@ namespace ReallifeGamemode.Server.Wanted
|
||||
public class WantedEscapeTimer
|
||||
{
|
||||
public static Dictionary<int, int> waTimer { get; set; } = new Dictionary<int, int>(); //zeit in ms
|
||||
|
||||
/*
|
||||
public static void WantedTimer()
|
||||
{
|
||||
System.Timers.Timer timer = new System.Timers.Timer(2500);
|
||||
timer.Start();
|
||||
timer.Elapsed += Timer_Elapsed;
|
||||
//System.Timers.Timer timer = new System.Timers.Timer(2500);
|
||||
//timer.Start();
|
||||
//timer.Elapsed += Timer_Elapsed;
|
||||
}
|
||||
|
||||
*/
|
||||
public static void ResetWantedTimeToElapse(Player client)
|
||||
{
|
||||
User user = client.GetUser();
|
||||
@@ -37,7 +37,7 @@ namespace ReallifeGamemode.Server.Wanted
|
||||
waTimer[user.Id] = 300000;
|
||||
}
|
||||
|
||||
private static void Timer_Elapsed(object sender, System.Timers.ElapsedEventArgs e)
|
||||
public static void Timer_Elapsed()
|
||||
{
|
||||
foreach (var player in NAPI.Pools.GetAllPlayers())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user