From 70c25598ff036804cd9419d175c1ef701ef66b87 Mon Sep 17 00:00:00 2001 From: hydrant Date: Mon, 5 Apr 2021 00:03:00 +0200 Subject: [PATCH] ga fix --- ReallifeGamemode.Server/Commands/FactionCommands.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ReallifeGamemode.Server/Commands/FactionCommands.cs b/ReallifeGamemode.Server/Commands/FactionCommands.cs index bac65955..724fc33e 100644 --- a/ReallifeGamemode.Server/Commands/FactionCommands.cs +++ b/ReallifeGamemode.Server/Commands/FactionCommands.cs @@ -51,7 +51,7 @@ namespace ReallifeGamemode.Server.Commands ChatService.NotAuthorized(player); return; } - if (f.Name == "Ballas" || f.Name == "Grove" || user.IsAdmin(AdminLevel.ADMIN)) + if (f?.Name == "Ballas" || f?.Name == "Grove" || user.IsAdmin(AdminLevel.ADMIN)) { message = Regex.Replace(message, "(~[a-zA-Z]~)|(!{(.*)})", "");