From 3612ef6c4565394c15ff8777e47c35a9f6aa4db7 Mon Sep 17 00:00:00 2001 From: Luke Date: Tue, 1 Jun 2021 14:49:06 +0200 Subject: [PATCH] letzte changse --- ReallifeGamemode.Server/Events/Login.cs | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/ReallifeGamemode.Server/Events/Login.cs b/ReallifeGamemode.Server/Events/Login.cs index 2dbcd189..597d9a51 100644 --- a/ReallifeGamemode.Server/Events/Login.cs +++ b/ReallifeGamemode.Server/Events/Login.cs @@ -111,23 +111,21 @@ namespace ReallifeGamemode.Server.Events player.TriggerEvent("enableSpawnschutz"); } - /* if (user.FactionId != null) { string msg = ""; - if (user.Faction?.StateOwned ?? false) + if (user.Faction.StateOwned) { - msg = "!{33AA33}** " + user.FactionRank?.RankName + " " + player.Name + " meldet sich zum Dienst, over **"; + msg = "!{33AA33}** " + user.FactionRank.RankName + " " + player.Name + " meldet sich zum Dienst, over **"; } else { - msg = "!{02FCFF}** " + user.FactionRank?.RankName + " " + player.Name + " ist wieder online **"; + msg = "!{02FCFF}** " + user.FactionRank.RankName + " " + player.Name + " ist wieder online **"; } - ChatService.BroadcastFaction(msg, user?.Faction); + ChatService.BroadcastFaction(msg, user.Faction); } - */ if (user.Group != null) {