Skip to content

Commit

Permalink
Add ManageEntitiesGUI and ManageBlocksGUI to EditChallengesGUI.
Browse files Browse the repository at this point in the history
  • Loading branch information
BONNe committed Jan 20, 2019
1 parent a90f29e commit 8143059
Showing 1 changed file with 14 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -525,8 +525,13 @@ else if (this.challenge.getChallengeType().equals(Challenges.ChallengeType.LEVEL
description = values;
icon = new ItemStack(Material.CREEPER_HEAD);
clickHandler = (panel, user, clickType, slot) -> {
// TODO: Entities GUI
this.build();
new ManageEntitiesGUI(this.addon,
this.world,
this.user,
this.challenge.getRequiredEntities(),
this.topLabel,
this.permissionPrefix,
this).build();

return true;
};
Expand Down Expand Up @@ -569,8 +574,13 @@ else if (this.challenge.getChallengeType().equals(Challenges.ChallengeType.LEVEL
description = values;
icon = new ItemStack(Material.STONE);
clickHandler = (panel, user, clickType, slot) -> {
// TODO: Block GUI
this.build();
new ManageBlocksGUI(this.addon,
this.world,
this.user,
this.challenge.getRequiredBlocks(),
this.topLabel,
this.permissionPrefix,
this).build();

return true;
};
Expand Down

0 comments on commit 8143059

Please sign in to comment.