diff --git a/build.gradle b/build.gradle index 14f4312ad7..fc8a0cebb9 100644 --- a/build.gradle +++ b/build.gradle @@ -12,7 +12,7 @@ checkstyle { shadowJar { archiveBaseName = "farmio" - archiveVersion = "v1.0" + archiveVersion = "v1.4" archiveClassifier = null archiveAppendix = null } diff --git a/src/main/java/logic/Parser.java b/src/main/java/logic/Parser.java index 8eb75f735e..e4167e626d 100644 --- a/src/main/java/logic/Parser.java +++ b/src/main/java/logic/Parser.java @@ -178,7 +178,7 @@ private static Command parseTaskAdd(String userInput) throws FarmioException { if (userInput.equals("market")) { return new CommandShowList("MarketList"); } - if (userInput.equals("task logic.commands") || userInput.equals("task command")) { + if (userInput.equals("task commands") || userInput.equals("task command")) { return new CommandShowList("TaskCommands"); } if (userInput.startsWith("do") || userInput.startsWith("if")) { @@ -225,7 +225,7 @@ private static Command parseTaskLog(String userInput) throws FarmioException { if (matcher.find()) { int pageNumber = 0; try { - Integer.parseInt(matcher.group("index")); + pageNumber = Integer.parseInt(matcher.group("index")); } catch (NumberFormatException e) { throw new FarmioException("Your number is too big!"); } @@ -327,7 +327,7 @@ private static Command parseTaskEdit(String userInput) throws FarmioException { if (matcher.find()) { int taskID = 0; try { - Integer.parseInt(matcher.group("index")); + taskID = Integer.parseInt(matcher.group("index")); } catch (NumberFormatException e) { throw new FarmioException("Your number is too large"); } @@ -350,7 +350,7 @@ private static Command parseTaskInsert(String userInput) throws FarmioException if (matcher.find()) { int taskID = 0; try { - Integer.parseInt(matcher.group("id")); + taskID = Integer.parseInt(matcher.group("id")); } catch (NumberFormatException e) { throw new FarmioException("Your number is too large!"); }