@Override
                public void run() {
                        while (!timeToEnd && registered) {
                                try {
                                        Packet recv = parser.parse(br.readLine());
                                        cmds.get(recv.getCommand()).exec(recv.getParameters(), recv.getFrom());
                                } catch (IOException e) {
                                        ui.notifyError(e.getMessage());
                                }
                        }
                        
                }