From a71fd4d55de1eaac4ff5d702db269823fe7cc9fe Mon Sep 17 00:00:00 2001 From: hydrant Date: Thu, 22 Apr 2021 14:12:09 +0200 Subject: [PATCH] fix lc --- 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 580353ca..bf5b46ae 100644 --- a/ReallifeGamemode.Server/Commands/FactionCommands.cs +++ b/ReallifeGamemode.Server/Commands/FactionCommands.cs @@ -280,7 +280,7 @@ namespace ReallifeGamemode.Server.Commands using var dbContext = new DatabaseContext(); User user = player.GetUser(dbContext); - if ((user?.FactionId == null || user.FactionLeader == false) && (!user.IsAdmin(AdminLevel.ADMIN) || !player.HasData("toglc")) + if ((user?.FactionId == null || user.FactionLeader == false) && (!user.IsAdmin(AdminLevel.ADMIN) || !player.HasData("toglc"))) { ChatService.NotAuthorized(player); return;