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"));