{
if (sender != null)
{
if (receiver != null)
{
receiver.sendPacket(new ExOlympiadUserInfo(sender, sender.getOlympiadSide()));
}
else
{
broadcastPacket(new ExOlympiadUserInfo(sender, sender.getOlympiadSide()), !onlyToSpectators, true);
}
}
else
{
for (Player player : _team1.getPlayers())
{
if (receiver != null)
{
receiver.sendPacket(new ExOlympiadUserInfo(player, player.getOlympiadSide()));
}
else
{
broadcastPacket(new ExOlympiadUserInfo(player, player.getOlympiadSide()), !onlyToSpectators, true);
player.broadcastRelationChanged();
}
}
for (Player player : _team2.getPlayers())
{
if (receiver != null)
{
receiver.sendPacket(new ExOlympiadUserInfo(player, player.getOlympiadSide()));
}
else
{
broadcastPacket(new ExOlympiadUserInfo(player, player.getOlympiadSide()), !onlyToSpectators, true);
player.broadcastRelationChanged();
}
}
}
}