Skip to content

Commit

Permalink
Add new menu items (mini-games) and remove modded server
Browse files Browse the repository at this point in the history
  • Loading branch information
DocSystem committed Dec 5, 2022
1 parent 293b872 commit f1a191e
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions src/main/java/fr/efreicraft/eclobby/listeners/MenuGUI.java
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,11 @@ public void initializeItems() {
/// NAV MENU (RIGHT SIDE)
// Vanilla Server
inv.setItem(12, createGuiItem(Material.GRASS_BLOCK, "§aSurvie Vanilla", "§7Cliquez pour rejoindre le serveur Vanilla"));
// Modded Server
inv.setItem(13, createGuiItem(Material.REDSTONE_BLOCK, "§cSurvie Moddée", "§7Cliquez pour rejoindre le serveur Moddé"));
// Mini-games
// Sumo
inv.setItem(21, createGuiItem(Material.SLIME_BALL, "§aSumo", "§7Cliquez pour rejoindre lancer une partie de Sumo"));
// Rush
inv.setItem(22, createGuiItem(Material.RED_BED, "§aRush", "§7Cliquez pour rejoindre lancer une partie de Rush"));
}

// Nice little method to create a gui item with a custom name, and description
Expand Down Expand Up @@ -106,10 +109,6 @@ public void onInventoryClick(final @NotNull InventoryClickEvent e) {
p.performCommand("join vanilla");
p.closeInventory();
}
case 13 -> {
p.performCommand("join modded");
p.closeInventory();
}
}
}
}

0 comments on commit f1a191e

Please sign in to comment.