Debug gang chat
This commit is contained in:
@@ -19,6 +19,8 @@ namespace ReallifeGamemode.Database.Entities
|
||||
[StringLength(32)]
|
||||
public string Name { get; set; }
|
||||
public bool StateOwned { get; set; }
|
||||
|
||||
public bool GangOwned { get; set; }
|
||||
public int WeaponDealTime { get; set; } = 60;
|
||||
|
||||
public override string BankAccountName => Name;
|
||||
|
||||
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user