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,