Debug gang chat

This commit is contained in:
CroniX
2020-06-22 19:31:39 +02:00
parent c11fe57160
commit 21aee08936
2 changed files with 6 additions and 1 deletions

View File

@@ -53,7 +53,10 @@ namespace ReallifeGamemode.Server.Commands
message = Regex.Replace(message, "(~[a-zA-Z]~)|(!{(.*)})", "");
string broadcastMessage = "!{FF0000}** " + player.GetUser().GetFactionRank().RankName + " " + player.Name + ": " + message + " )) **";
ChatService.BroadcastFaction(broadcastMessage, f);
using (var context = new DatabaseContext())
{
ChatService.BroadcastFaction(broadcastMessage, context.Factions.ToList().FindAll(c => c.GangOwned));
}
}
else
{