Skip to content

Commit

Permalink
feat: Add receive menu
Browse files Browse the repository at this point in the history
  • Loading branch information
m1sk9 committed Oct 15, 2024
1 parent 88aa7c8 commit d0a42fa
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/main/java/space/yurisi/universecorev2/menu/MainMenu.java
Original file line number Diff line number Diff line change
Expand Up @@ -65,12 +65,16 @@ public void sendMenu(Player player) {
.setDisplayName("弾薬")
.setLegacyLore(List.of("§6弾薬を購入・クラフトします")),
"/ammo");
Item executeReceive = new CommandItem(new ItemBuilder(Material.CHEST)
.setDisplayName("報酬受け取り")
.setLegacyLore(List.of("§6報酬受け取りメニューを開きます")),
"/receive");

Gui gui = Gui.normal()
.setStructure(
"# # # i # = # # #",
"# + a m t o y + #",
"# + + n s h + + #",
"# + + n s h p + #",
"# # # # l # # # #"
)
.addIngredient('#', border)
Expand All @@ -85,6 +89,7 @@ public void sendMenu(Player player) {
.addIngredient('s', executeTrash)
.addIngredient('h', executeHead)
.addIngredient('o', executeAmmo)
.addIngredient('p', executeReceive)
.addIngredient('l', new LaunchNavigationItem())
.build();

Expand Down

0 comments on commit d0a42fa

Please sign in to comment.