public static void messageReceived(Message message) {
        cbText.add(message);
        ChatboxInterface chatbox = InterfaceHandler.getChatbox();
        if (cbText.size() > 100) {
            cbText.remove(0);
            chatbox.setScrollY(chatbox.getScrollY() + 1);
        }
        if (chatbox.getScrollY() != 0 && chatbox.getScrollY() > -100) {
            chatbox.setScrollY(chatbox.getScrollY() - 1);
        }
    }