Skip to content

Commit

Permalink
Add EditSettingsGUI to AdminGUI.
Browse files Browse the repository at this point in the history
Fix issue when other GUIs were not opened.
  • Loading branch information
BONNe committed Jan 18, 2019
1 parent 6cdc619 commit 0f56eb7
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions src/main/java/world/bentobox/challenges/panel/admin/AdminGUI.java
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ private PanelItem createButton(Button button)
ListChallengesGUI.Mode.EDIT,
this.topLabel,
this.permissionPrefix,
this);
this).build();

return true;
};
Expand All @@ -244,7 +244,7 @@ private PanelItem createButton(Button button)
ListLevelsGUI.Mode.EDIT,
this.topLabel,
this.permissionPrefix,
this);
this).build();

return true;
};
Expand All @@ -266,7 +266,7 @@ private PanelItem createButton(Button button)
ListChallengesGUI.Mode.DELETE,
this.topLabel,
this.permissionPrefix,
this);
this).build();

return true;
};
Expand All @@ -288,7 +288,7 @@ private PanelItem createButton(Button button)
ListLevelsGUI.Mode.DELETE,
this.topLabel,
this.permissionPrefix,
this);
this).build();

return true;
};
Expand Down Expand Up @@ -329,7 +329,12 @@ private PanelItem createButton(Button button)
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;
};
Expand Down

0 comments on commit 0f56eb7

Please sign in to comment.