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) {