licht modus fehlerbehebung
This commit is contained in:
@@ -1713,7 +1713,7 @@ namespace ReallifeGamemode.Server.Commands
|
||||
}
|
||||
string broadcastMsg = $"Serverzeit wurde auf ~g~{hour:D2}:{min:D2}:{sec:D2} ~s~gesetzt!";
|
||||
NAPI.Notification.SendNotificationToAll(broadcastMsg);
|
||||
TimeManager.PauseTimeManager();
|
||||
TimeManager.PauseTimeManager(new TimeSpan(hour, min, sec));
|
||||
NAPI.World.SetTime(hour, min, sec);
|
||||
return;
|
||||
|
||||
|
||||
@@ -23,10 +23,10 @@ namespace ReallifeGamemode.Server.Managers
|
||||
realTimeTimer.Start();
|
||||
}
|
||||
|
||||
public static void PauseTimeManager()
|
||||
public static void PauseTimeManager(TimeSpan time)
|
||||
{
|
||||
realTimeTimer.Stop();
|
||||
CurrentTime = DateTime.Now.TimeOfDay;
|
||||
CurrentTime = time;
|
||||
}
|
||||
|
||||
private static void SetTime(object sender, ElapsedEventArgs args)
|
||||
|
||||
Reference in New Issue
Block a user