diff --git a/src/main/java/world/bentobox/challenges/ChallengesManager.java b/src/main/java/world/bentobox/challenges/ChallengesManager.java index 8ef5357..6f6b44d 100644 --- a/src/main/java/world/bentobox/challenges/ChallengesManager.java +++ b/src/main/java/world/bentobox/challenges/ChallengesManager.java @@ -930,12 +930,13 @@ public class ChallengesManager * @param uniqueID - new ID for challenge level. * @return ChallengeLevel that is currently created. */ - public ChallengeLevel createLevel(String uniqueID) + public ChallengeLevel createLevel(String uniqueID, World world) { if (!this.containsLevel(uniqueID)) { ChallengeLevel level = new ChallengeLevel(); level.setUniqueId(uniqueID); + level.setWorld(world.getName()); this.saveLevel(level); this.loadLevel(level); 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 c5d3ca8..462c2f4 100644 --- a/src/main/java/world/bentobox/challenges/panel/admin/AdminGUI.java +++ b/src/main/java/world/bentobox/challenges/panel/admin/AdminGUI.java @@ -244,7 +244,7 @@ public class AdminGUI extends CommonGUI new EditLevelGUI(this.addon, this.world, this.user, - this.addon.getChallengesManager().createLevel(newName), + this.addon.getChallengesManager().createLevel(newName, this.world), this.topLabel, this.permissionPrefix, this).build();