// ExEventMatchUserInfo
if(sender != null)
{
if(receiver != null)
{
receiver.sendPacket(new ExOlympiadUserInfo(sender, sender.getOlympiadSide()));
}
else
{
broadcastPacket(new ExOlympiadUserInfo(sender, sender.getOlympiadSide()), !onlyToSpectators, true);
}
}
else
{
// Рассылаем информацию о первой команде
for(L2Player player : _team1.getPlayers())
{
if(receiver != null)
{
receiver.sendPacket(new ExOlympiadUserInfo(player, player.getOlympiadSide()));
}
else
{
broadcastPacket(new ExOlympiadUserInfo(player, player.getOlympiadSide()), !onlyToSpectators, true);
}
}
// Рассылаем информацию о второй команде
for(L2Player player : _team2.getPlayers())
{
if(receiver != null)
{
receiver.sendPacket(new ExOlympiadUserInfo(player, player.getOlympiadSide()));
}
else
{
broadcastPacket(new ExOlympiadUserInfo(player, player.getOlympiadSide()), !onlyToSpectators, true);
}
}
}
}