From 3379c0751ee4ff8fbd39f56c0f3b6084dd14e7d1 Mon Sep 17 00:00:00 2001 From: Rowan Date: Mon, 22 Aug 2022 22:30:39 +0200 Subject: [PATCH] Version bump / Bug Fix (#51) * Fixed bug where /ca set completed false is not setting it to false Signed-off-by: rowanvr * Version bump Signed-off-by: rowanvr Signed-off-by: rowanvr --- core/pom.xml | 2 +- .../me/tippie/customadvancements/commands/CommandSet.java | 2 ++ dist/pom.xml | 2 +- pom.xml | 2 +- spigot_1_17_R1/pom.xml | 4 ++-- spigot_1_18_R1/pom.xml | 4 ++-- spigot_1_18_R2/pom.xml | 4 ++-- spigot_1_19_R1/pom.xml | 4 ++-- 8 files changed, 13 insertions(+), 11 deletions(-) diff --git a/core/pom.xml b/core/pom.xml index 989df49..db1e5c1 100644 --- a/core/pom.xml +++ b/core/pom.xml @@ -10,7 +10,7 @@ me.tippie customadvancements-parent - 1.2.3 + 1.2.4 diff --git a/core/src/main/java/me/tippie/customadvancements/commands/CommandSet.java b/core/src/main/java/me/tippie/customadvancements/commands/CommandSet.java index 4c745d7..bdf5cf0 100644 --- a/core/src/main/java/me/tippie/customadvancements/commands/CommandSet.java +++ b/core/src/main/java/me/tippie/customadvancements/commands/CommandSet.java @@ -100,6 +100,8 @@ public void execute(final CommandSender sender, final Command command, final Str progress.setProgress(advancement.getMaxProgress()); } else if (progress.isCompleted() || progress.getProgress() >= advancement.getMaxProgress()) { progress.setProgress(0); + progress.setCompleted(false); + progress.setAnnounced(false); } sender.sendMessage(Lang.COMMAND_SET_PROGRESS_RESPONSE.getConfigValue(new String[]{type, args[2], args[3], value})); } else if (type.equalsIgnoreCase("progress")) { diff --git a/dist/pom.xml b/dist/pom.xml index e9cbc39..ebcd648 100644 --- a/dist/pom.xml +++ b/dist/pom.xml @@ -10,7 +10,7 @@ customadvancements-parent me.tippie - 1.2.3 + 1.2.4 diff --git a/pom.xml b/pom.xml index d84838d..d336bf6 100644 --- a/pom.xml +++ b/pom.xml @@ -6,7 +6,7 @@ me.tippie customadvancements-parent - 1.2.3 + 1.2.4 pom CustomAdvancements diff --git a/spigot_1_17_R1/pom.xml b/spigot_1_17_R1/pom.xml index 06fba20..7d7dae2 100644 --- a/spigot_1_17_R1/pom.xml +++ b/spigot_1_17_R1/pom.xml @@ -10,7 +10,7 @@ me.tippie customadvancements-parent - 1.2.3 + 1.2.4 @@ -48,7 +48,7 @@ net.md-5 specialsource-maven-plugin - 1.2.3 + 1.2.4 package diff --git a/spigot_1_18_R1/pom.xml b/spigot_1_18_R1/pom.xml index b4b6827..3dcb48f 100644 --- a/spigot_1_18_R1/pom.xml +++ b/spigot_1_18_R1/pom.xml @@ -10,7 +10,7 @@ me.tippie customadvancements-parent - 1.2.3 + 1.2.4 @@ -48,7 +48,7 @@ net.md-5 specialsource-maven-plugin - 1.2.3 + 1.2.4 package diff --git a/spigot_1_18_R2/pom.xml b/spigot_1_18_R2/pom.xml index 16d2076..735bf87 100644 --- a/spigot_1_18_R2/pom.xml +++ b/spigot_1_18_R2/pom.xml @@ -10,7 +10,7 @@ me.tippie customadvancements-parent - 1.2.3 + 1.2.4 @@ -48,7 +48,7 @@ net.md-5 specialsource-maven-plugin - 1.2.3 + 1.2.4 package diff --git a/spigot_1_19_R1/pom.xml b/spigot_1_19_R1/pom.xml index 741e657..55c33e8 100644 --- a/spigot_1_19_R1/pom.xml +++ b/spigot_1_19_R1/pom.xml @@ -10,7 +10,7 @@ me.tippie customadvancements-parent - 1.2.3 + 1.2.4 @@ -48,7 +48,7 @@ net.md-5 specialsource-maven-plugin - 1.2.3 + 1.2.4 package