public virtual void LocalBroadcast(string message, params object[] args) { var text = String.Format(message, args); PvPTeam team; foreach (var pm in GetLocalBroadcastList().Where(pm => pm != null && !pm.Deleted)) { pm.SendMessage(IsParticipant(pm, out team) ? team.Color : Options.Broadcasts.Local.MessageHue, text); } AutoPvP.InvokeBattleLocalBroadcast(this, text); }
public virtual void LocalBroadcast(string message, params object[] args) { var text = String.Format(message, args); if (String.IsNullOrWhiteSpace(text)) { return; } if (Options.Broadcasts.Local.Mode == PvPBattleLocalBroadcastMode.Disabled) { return; } AutoPvP.InvokeBattleLocalBroadcast(this, text); PvPTeam team; foreach (var pm in GetLocalBroadcastList()) { pm.SendMessage(IsParticipant(pm, out team) ? team.Color : Options.Broadcasts.Local.MessageHue, text); } }