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

@@ -4,6 +4,8 @@ using ReallifeGamemode.Database.Entities;
using Newtonsoft.Json;
using ReallifeGamemode.Database.Models;
using ReallifeGamemode.Server.Extensions;
using ReallifeGamemode.Server.Util;
using System;
/**
* @overview Life of German Reallife - Event Register (Register.cs)
@@ -66,6 +68,11 @@ namespace ReallifeGamemode.Server.Events
player.TriggerEvent("toggleCreator");
player.SafeTeleport(new Vector3(402.8664, -996.4108, -99.00027));
//player.Position = new Vector3(user.PositionX, user.PositionY, user.PositionZ);
if (GlobalHelper.CountdownUntil > DateTime.Now)
{
player.TriggerEvent("countdown", (GlobalHelper.CountdownUntil - DateTime.Now).TotalSeconds, GlobalHelper.CountdownText);
}
}
else
{