From 39c772487b481e936fdba055fe14f899d77f5098 Mon Sep 17 00:00:00 2001 From: hydrant Date: Mon, 5 Apr 2021 12:11:32 +0200 Subject: [PATCH] d chat for admins fix when zivi --- ReallifeGamemode.Server/Commands/FactionCommands.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ReallifeGamemode.Server/Commands/FactionCommands.cs b/ReallifeGamemode.Server/Commands/FactionCommands.cs index 8cebc338..147b79dc 100644 --- a/ReallifeGamemode.Server/Commands/FactionCommands.cs +++ b/ReallifeGamemode.Server/Commands/FactionCommands.cs @@ -109,9 +109,9 @@ namespace ReallifeGamemode.Server.Commands string factionName = string.Empty; - if(f.StateOwned) + if(f?.StateOwned ?? false) { - factionName = player.GetUser().GetFactionRank().RankName; + factionName = u.GetFactionRank().RankName; } else {