From 0f56eb7185379377de6607756b5885a640dd5e31 Mon Sep 17 00:00:00 2001 From: BONNe1704 Date: Fri, 18 Jan 2019 17:40:01 +0200 Subject: [PATCH] Add EditSettingsGUI to AdminGUI. Fix issue when other GUIs were not opened. --- .../bentobox/challenges/panel/admin/AdminGUI.java | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 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 77334ac..2893d6f 100644 --- a/src/main/java/world/bentobox/challenges/panel/admin/AdminGUI.java +++ b/src/main/java/world/bentobox/challenges/panel/admin/AdminGUI.java @@ -223,7 +223,7 @@ public class AdminGUI extends CommonGUI ListChallengesGUI.Mode.EDIT, this.topLabel, this.permissionPrefix, - this); + this).build(); return true; }; @@ -244,7 +244,7 @@ public class AdminGUI extends CommonGUI ListLevelsGUI.Mode.EDIT, this.topLabel, this.permissionPrefix, - this); + this).build(); return true; }; @@ -266,7 +266,7 @@ public class AdminGUI extends CommonGUI ListChallengesGUI.Mode.DELETE, this.topLabel, this.permissionPrefix, - this); + this).build(); return true; }; @@ -288,7 +288,7 @@ public class AdminGUI extends CommonGUI ListLevelsGUI.Mode.DELETE, this.topLabel, this.permissionPrefix, - this); + this).build(); return true; }; @@ -329,7 +329,12 @@ public class AdminGUI extends CommonGUI description = Collections.emptyList(); icon = new ItemStack(Material.CRAFTING_TABLE); clickHandler = (panel, user, clickType, slot) -> { - // TODO: Create Settings GUI + new EditSettingsGUI(this.addon, + this.world, + this.user, + this.topLabel, + this.permissionPrefix, + this).build(); return true; };