Skip to content

Commit

Permalink
Merge pull request #19 from efrei-craft/development
Browse files Browse the repository at this point in the history
Add new menu items
  • Loading branch information
DocSystem authored Dec 5, 2022
2 parents 0f3ee12 + f383963 commit 43639f2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ plugins {
}

group = 'fr.efreicraft'
version = '1.1.0'
version = '1.1.1'

compileJava.options.encoding = 'UTF-8'

Expand Down
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 43639f2

Please sign in to comment.