@Override
    public void run() {
        this.setName("ConsoleReader");
        Scanner scanner = new Scanner(input);
        String line;
        UI.info("Available commands:");
        UI.info("   /join <name> [password]             Joins a server on the same machine.");
        UI.info("   /joinip <host> <name> [password]    Joins a server on the network.");
        UI.info(" Enter command:");
        try {
            while (scanner.hasNextLine()) {
                line = scanner.nextLine();
                if (Thread.interrupted()) {
                    break;
                }
                if (line.startsWith("/")) {
                    handle(line);
                } else {
                    UI.info("Chat is currently not implemented! (Commands start with /)");
                }
            }
        } catch (IOException e) {
            LOG.warn("Exception while reading commands from input stream: " + e.getMessage());
        } catch (NoSuchElementException e) {
            LOG.warn("No line found!");
        }
        scanner.close();
    }