@Override
    public void actionPerformed(ActionEvent e) {
        if (messagesQueue.size() == 0)
        {
            messageDelay.stop();
            activeDelay = 1;
        }
        else
        {
            String channel = addHash(messagesQueue.get(0).split(" ", 2)[0]);
            if (!acebotCore.getChannel(channel).getLastMessage().equalsIgnoreCase(messagesQueue.get(0).split(" ", 2)[1]))
            {
                acebotCore.sendMessage(channel, messagesQueue.get(0).split(" ", 2)[1]);
                //GLOBAL'D -
                acebotCore.printChannel(channel, "[" + BotCore.sdf.format(new Date()) + "] ", graphics.acebotsthree.TIMECOLOR);
                acebotCore.printChannel(channel, acebotCore.getNick() + ": ", acebotCore.getBotColor());
                acebotCore.printlnChannel(channel, messagesQueue.get(0).split(" ", 2)[1], new Color(230, 230, 230));

                acebotCore.printAll("[" + BotCore.sdf.format(new Date()) + "] ", graphics.acebotsthree.TIMECOLOR);
                acebotCore.printAll(acebotCore.getNick() + channel.substring(0,4) + ": ", acebotCore.getBotColor());
                acebotCore.printlnAll(messagesQueue.get(0).split(" ", 2)[1], new Color(230, 230, 230));
                      
                activeDelay = calculateNewDelay();
                messageDelay.setDelay(activeDelay);
                acebotCore.getChannel(channel).startTimer();
                acebotCore.getChannel(channel).setLastMessage(messagesQueue.get(0).split(" ", 2)[1]);
            }
            else
            {
                System.out.println("Denied message " + messagesQueue.get(0).split(" ", 2)[1]);
            }
            for (int i = 0; i <= 4; i++)
                priorityPosition[i]--;
            messagesQueue.remove(0);
        }
    }