public static boolean sentenceContainsLink(String sentence, MessageEvent<PircBotX> event) throws IllegalAccessException, SQLException, InstantiationException {
        String[] splitted =  sentence.toLowerCase().split("\\.");
        System.out.println(splitted[1]);
            for (int i=0; i< splitted.length; i++){
                System.out.println(splitted[i]);
                int y =0;
                while(links.iterator().hasNext() && y<links.size()){
                    if(links.get(y).equalsIgnoreCase(splitted[i])){
                    if (Permissions.isPermitted(event.getUser().getNick(), event)) {

                        return false;
                    } else {
                        return true;
                    }

                }
                    y++;
                }

                }
        return false;
    }