From 14241f4ddc97cae1e7c7106405e911ff5ec98504 Mon Sep 17 00:00:00 2001 From: Luke Date: Sun, 2 May 2021 16:19:04 +0000 Subject: [PATCH] change /d --- 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 e4ff80ca..7faa4dd4 100644 --- a/ReallifeGamemode.Server/Commands/FactionCommands.cs +++ b/ReallifeGamemode.Server/Commands/FactionCommands.cs @@ -166,7 +166,7 @@ namespace ReallifeGamemode.Server.Commands if (f?.StateOwned ?? false) { - factionName = user.FactionRank.RankName; + factionName = user.Faction.Name; } else { @@ -182,7 +182,7 @@ namespace ReallifeGamemode.Server.Commands dbContext.DepartmentChatLogs.Add(logEntry); dbContext.SaveChanges(); - string broadcastMessage = "!{CC3333}** " + factionName + " " + player.Name + ": " + message + ", over **"; + string broadcastMessage = "!{CC3333}** [" + factionName + "] " + player.Name + ": " + message + ", over **"; using (var context = new DatabaseContext()) { ChatService.BroadcastFaction(broadcastMessage, context.Factions.ToList().FindAll(c => c.StateOwned), true, (admin) => admin.HasData("togd"));