{
clan.setHasCastle(getCastleId()); // Set has castle flag for new owner
new Announcements().announceToAll(clan.getName() + " has taken " + getName() + " castle!");
clan.broadcastToOnlineMembers(new PledgeShowInfoUpdate(clan));
ThreadPoolManager.getInstance().scheduleGeneral(new CastleUpdater(clan, 1), 3600000); // Schedule owner tasks to start running
}
}
catch (Exception e)
{
System.out.println("Exception: updateOwnerInDB(L2Clan clan): " + e.getMessage());