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

@@ -86,8 +86,8 @@ export default function (globalData: IGlobalData): void {
gangwarTimer = gwTimer;
});
mp.events.add("countdown", (timer, text) => {
countdown = timer;
mp.events.add("countdown", (timer: number, text) => {
countdown = Math.round(timer);
cdTimestamp = Date.now();
countdownText = text;
});