mirror of
https://github.com/BentoBoxWorld/Challenges.git
synced 2024-11-24 19:45:14 +01:00
Add EditSettingsGUI to AdminGUI.
Fix issue when other GUIs were not opened.
This commit is contained in:
parent
6cdc619cf0
commit
0f56eb7185
@ -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;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user