From 22205265f610e85cf8bbd59e122977d955e26fca Mon Sep 17 00:00:00 2001 From: BONNe Date: Wed, 23 Jan 2019 20:36:50 +0200 Subject: [PATCH] Fix issue when UniqueID was not accepted. Logical error. --- .../java/world/bentobox/challenges/panel/admin/AdminGUI.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/world/bentobox/challenges/panel/admin/AdminGUI.java b/src/main/java/world/bentobox/challenges/panel/admin/AdminGUI.java index d93d5b5..0140aea 100644 --- a/src/main/java/world/bentobox/challenges/panel/admin/AdminGUI.java +++ b/src/main/java/world/bentobox/challenges/panel/admin/AdminGUI.java @@ -201,7 +201,7 @@ public class AdminGUI extends CommonGUI (player, reply) -> { String newName = Util.getWorld(this.world).getName() + "_" + reply; - if (this.addon.getChallengesManager().containsChallenge(newName)) + if (!this.addon.getChallengesManager().containsChallenge(newName)) { new EditChallengeGUI(this.addon, this.world, @@ -237,7 +237,7 @@ public class AdminGUI extends CommonGUI (player, reply) -> { String newName = Util.getWorld(this.world).getName() + "_" + reply; - if (this.addon.getChallengesManager().containsLevel(newName)) + if (!this.addon.getChallengesManager().containsLevel(newName)) { new EditLevelGUI(this.addon, this.world,