laufenden countdown auch nach login/register anzeigen

This commit is contained in:
hydrant
2021-04-11 05:36:23 +02:00
parent cf62e11656
commit 5d4d1165de
5 changed files with 23 additions and 4 deletions

View File

@@ -10,7 +10,7 @@ using ReallifeGamemode.Server.Types;
using ReallifeGamemode.Server.Util;
using ReallifeGamemode.Server.Wanted;
using ReallifeGamemode.Database.Entities;
using System;
/**
* @overview Life of German Reallife - Event Login (Login.cs)
@@ -167,6 +167,11 @@ namespace ReallifeGamemode.Server.Events
player.SetData("isDead", false);
}
}, delayTime: 1000);
if(GlobalHelper.CountdownUntil > DateTime.Now)
{
player.TriggerEvent("countdown", (GlobalHelper.CountdownUntil - DateTime.Now).TotalSeconds, GlobalHelper.CountdownText);
}
}
}
}