fix /tog command

This commit is contained in:
hydrant
2021-04-11 04:15:12 +02:00
parent 5ebbfb0638
commit f5c0bb4f6b
4 changed files with 36 additions and 5 deletions

View File

@@ -224,7 +224,7 @@ namespace ReallifeGamemode.Server.Commands
NAPI.Pools.GetAllPlayers().ForEach(p =>
{
User pUser = p.GetUser();
if ((pUser?.FactionLeader ?? false) || pUser.IsAdmin(AdminLevel.ADMIN))
if ((pUser?.FactionLeader ?? false) || (pUser.IsAdmin(AdminLevel.ADMIN) && !p.HasData("toglc")))
{
ChatService.SendMessage(p, broadcastMsg);
}