GangwarFix zweiter Tag 10

This commit is contained in:
VegaZ
2021-03-30 22:20:29 +02:00
parent 136c1c06d2
commit 298109ac51

View File

@@ -114,11 +114,18 @@ namespace ReallifeGamemode.Server.Gangwar
this.timerCount = 0;
}
private async Task reloadGangTurfs()
private void reloadGangTurfs()
{
await Task.Delay(10000);
var t = Task.Factory.StartNew(() =>
{
ChatService.Broadcast("DEBUG: reloadGangTurfs(...)");
Task.Delay(10000).Wait();
Gangwar.loadTurfs();
Gangwar.loadTurfs_ToAllPlayers();
ChatService.Broadcast("DEBUG: reloadGangTurfs()...10 Sekunden um");
});
t.Wait();
}
private void Tick(object sender, System.Timers.ElapsedEventArgs e)