Ejemplo n.º 1
0
 public void BroadcastMessage(Message msg)
 {
     if (_pprovider != null)
     {
         lock (_pprovider.PlayerLock) {
             Player[] players = _pprovider.GetPlayersArray();
             for (int i = 0; i < players.Length; ++i)
             {
                 players[i].SendMessage(msg);
             }
         }
     }
     else
     {
         InfoLog.WriteInfo("Message broadcast unsuccessful.", EPrefix.ServerSendMessageInfo);
     }
 }