return;
}
member.setPlayerInstance(activeChar, false);
int sponsor = activeChar.getSponsor();
int apprentice = activeChar.getApprentice();
L2GameServerPacket msg = new SystemMessage2(SystemMsg.CLAN_MEMBER_S1_HAS_LOGGED_INTO_GAME).addName(activeChar);
PledgeShowMemberListUpdate memberUpdate = new PledgeShowMemberListUpdate(activeChar);
for (Player clanMember : clan.getOnlineMembers(activeChar.getObjectId()))
{
clanMember.sendPacket(memberUpdate);
if (clanMember.getObjectId() == sponsor)
{
clanMember.sendPacket(new SystemMessage2(SystemMsg.YOUR_APPRENTICE_C1_HAS_LOGGED_OUT).addName(activeChar));
}
else if (clanMember.getObjectId() == apprentice)
{
clanMember.sendPacket(new SystemMessage2(SystemMsg.YOUR_SPONSOR_C1_HAS_LOGGED_IN).addName(activeChar));
}
else
{
clanMember.sendPacket(msg);
}
}
activeChar.getClan().startNotifyClanEnterWorld(activeChar);
if (!activeChar.isClanLeader())
{
return;
}
ClanHall clanHall = clan.getHasHideout() > 0 ? ResidenceHolder.getInstance().getResidence(ClanHall.class, clan.getHasHideout()) : null;
if ((clanHall == null) || (clanHall.getAuctionLength() != 0))
{
return;
}
if (clanHall.getSiegeEvent().getClass() != ClanHallAuctionEvent.class)
{
return;
}
if (clan.getWarehouse().getCountOf(ItemTemplate.ITEM_ID_ADENA) < clanHall.getRentalFee())
{
activeChar.sendPacket(new SystemMessage2(SystemMsg.PAYMENT_FOR_YOUR_CLAN_HALL_HAS_NOT_BEEN_MADE_PLEASE_ME_PAYMENT_TO_YOUR_CLAN_WAREHOUSE_BY_S1_TOMORROW).addLong(clanHall.getRentalFee()));
}
}