@Override
    public void run() {
        while(true) {
            try {
                if(scan.hasNextLine()) {
                    String cmd = scan.nextLine();
                    CommandsListener.process(cmd);
                    pre();
                }
            }catch(Exception ex) {}
        }
    }