private boolean removeLegionMember(String charName,boolean kick,String playerName){
  LegionMemberEx legionMember=getLegionMemberEx(charName);
  if (legionMember == null) {
    log.error("Char name does not exist in legion member table: " + charName);
    return false;
  }
  deleteLegionMemberFromDB(legionMember);
  Player player=world.findPlayer(charName);
  if (player != null) {
    PacketSendUtility.broadcastPacket(player,new SM_LEGION_UPDATE_TITLE(player.getObjectId(),0,"",2),true);
  }
  if (kick) {
    PacketSendUtility.broadcastPacketToLegion(legionMember.getLegion(),new SM_LEGION_LEAVE_MEMBER(1300247,legionMember.getObjectId(),playerName,legionMember.getName()));
  }
 else {
    PacketSendUtility.broadcastPacketToLegion(legionMember.getLegion(),new SM_LEGION_LEAVE_MEMBER(900699,legionMember.getObjectId(),charName));
  }
  return true;
}

private boolean removeLegionMember ( String charName , boolean kick , String playerName ) { LegionMemberEx legionMember = getLegionMemberEx ( charName ) ; if ( legionMember == null ) { log . error ( "Char name does not exist in legion member table: " + charName ) ; return false ; } deleteLegionMemberFromDB ( legionMember ) ; Player player = world . findPlayer ( charName ) ; if ( player != null ) { PacketSendUtility . broadcastPacket ( player , new SM_LEGION_UPDATE_TITLE ( player . getObjectId ( ) , 0 , "" , 2 ) , true ) ; } if ( kick ) { PacketSendUtility . broadcastPacketToLegion ( legionMember . getLegion ( ) , new SM_LEGION_LEAVE_MEMBER ( 1300247 , legionMember . getObjectId ( ) , playerName , legionMember . getName ( ) ) ) ; } else { PacketSendUtility . broadcastPacketToLegion ( legionMember . getLegion ( ) , new SM_LEGION_LEAVE_MEMBER ( 900699 , legionMember . getObjectId ( ) , charName ) ) ; } return true ; }
this method will remove a legion member
