diff --git a/src/main/java/com/github/maxopoly/angelia_cmd/Main.java b/src/main/java/com/github/maxopoly/angelia_cmd/Main.java index 72d0abf..b7e2f25 100644 --- a/src/main/java/com/github/maxopoly/angelia_cmd/Main.java +++ b/src/main/java/com/github/maxopoly/angelia_cmd/Main.java @@ -26,8 +26,8 @@ public static void main(String[] args) { connection.getEventHandler().registerListener(new PlayerStateListener(logger)); cmdHandler = new CommandHandler(logger); CommandLineReader reader = new CommandLineReader(logger, connManager, connection.getPlayerName(), cmdHandler); - reader.start(); cmdHandler.handle(parser.getCmdToRun(), connection); + reader.start(); } public static CommandHandler getCommandHandler() {