private void changeAnnouncement(Player activePlayer,String announcement){
  if (legionRestrictions.canChangeAnnouncement(activePlayer.getLegionMember(),announcement)) {
    Legion legion=activePlayer.getLegion();
    Timestamp currentTime=new Timestamp(System.currentTimeMillis());
    storeNewAnnouncement(legion.getLegionId(),currentTime,announcement);
    legion.addAnnouncementToList(currentTime,announcement);
    PacketSendUtility.sendPacket(activePlayer,SM_SYSTEM_MESSAGE.STR_GUILD_WRITE_NOTICE_DONE);
    PacketSendUtility.broadcastPacketToLegion(legion,new SM_LEGION_EDIT(0x05,(int)(System.currentTimeMillis() / 1000),announcement));
  }
}

private void changeAnnouncement ( Player activePlayer , String announcement ) { if ( legionRestrictions . canChangeAnnouncement ( activePlayer . getLegionMember ( ) , announcement ) ) { Legion legion = activePlayer . getLegion ( ) ; Timestamp currentTime = new Timestamp ( System . currentTimeMillis ( ) ) ; storeNewAnnouncement ( legion . getLegionId ( ) , currentTime , announcement ) ; legion . addAnnouncementToList ( currentTime , announcement ) ; PacketSendUtility . sendPacket ( activePlayer , SM_SYSTEM_MESSAGE . STR_GUILD_WRITE_NOTICE_DONE ) ; PacketSendUtility . broadcastPacketToLegion ( legion , new SM_LEGION_EDIT ( 0x05 , ( int ) ( System . currentTimeMillis ( ) / 1000 ) , announcement ) ) ; } }
this will add a new announcement to the db and change the current announcement
