internal void OnPlayerTeamChange(GamePlayer player) { GamePlayer[] list = GetAllPlayers(); GSPacketIn pkg = null; foreach (GamePlayer p in list) { if (pkg == null) { pkg = p.Out.SendGamePlayerChangedTeam(player); } else { p.Out.SendTCP(pkg); } } _processor.OnPlayerTeamChanged(this, player); }