@Override
    public void update(GameContainer gc, int delta) throws SlickException {
        //TICK
        time += delta;
        if(time/50 == 1) {        
            time = 0;
        }
        input = gc.getInput();
        if(input.isKeyPressed(Input.KEY_T)) {
            String text = JOptionPane.showInputDialog("Text: ");
            System.out.println(text);
            client.getChat().addLine(text, true, true);
        }
        client.update(input);
    }