mirror of
https://github.com/BentoBoxWorld/Challenges.git
synced 2024-11-24 11:36:53 +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,
|
ListChallengesGUI.Mode.EDIT,
|
||||||
this.topLabel,
|
this.topLabel,
|
||||||
this.permissionPrefix,
|
this.permissionPrefix,
|
||||||
this);
|
this).build();
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
};
|
};
|
||||||
@ -244,7 +244,7 @@ public class AdminGUI extends CommonGUI
|
|||||||
ListLevelsGUI.Mode.EDIT,
|
ListLevelsGUI.Mode.EDIT,
|
||||||
this.topLabel,
|
this.topLabel,
|
||||||
this.permissionPrefix,
|
this.permissionPrefix,
|
||||||
this);
|
this).build();
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
};
|
};
|
||||||
@ -266,7 +266,7 @@ public class AdminGUI extends CommonGUI
|
|||||||
ListChallengesGUI.Mode.DELETE,
|
ListChallengesGUI.Mode.DELETE,
|
||||||
this.topLabel,
|
this.topLabel,
|
||||||
this.permissionPrefix,
|
this.permissionPrefix,
|
||||||
this);
|
this).build();
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
};
|
};
|
||||||
@ -288,7 +288,7 @@ public class AdminGUI extends CommonGUI
|
|||||||
ListLevelsGUI.Mode.DELETE,
|
ListLevelsGUI.Mode.DELETE,
|
||||||
this.topLabel,
|
this.topLabel,
|
||||||
this.permissionPrefix,
|
this.permissionPrefix,
|
||||||
this);
|
this).build();
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
};
|
};
|
||||||
@ -329,7 +329,12 @@ public class AdminGUI extends CommonGUI
|
|||||||
description = Collections.emptyList();
|
description = Collections.emptyList();
|
||||||
icon = new ItemStack(Material.CRAFTING_TABLE);
|
icon = new ItemStack(Material.CRAFTING_TABLE);
|
||||||
clickHandler = (panel, user, clickType, slot) -> {
|
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;
|
return true;
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user