admin lc ga

This commit is contained in:
hydrant
2021-04-04 23:08:06 +02:00
parent eb1eebe123
commit 4041983d53
2 changed files with 29 additions and 8 deletions

View File

@@ -58,12 +58,9 @@ namespace ReallifeGamemode.Server.Services
{
User user = c.GetUser();
Faction f = user?.Faction;
if (f != null)
if (f != null && factions.Find(fT => fT.Id == f.Id) != null)
{
if (factions.Find(fT => fT.Id == f.Id) != null)
{
ChatService.SendMessage(c, message);
}
ChatService.SendMessage(c, message);
}
else if (user.IsAdmin(AdminLevel.ADMIN) && toAdmins)
{