diff --git a/src/main/java/rip/tilly/bedwars/menusystem/menu/PlayAGameMenu.java b/src/main/java/rip/tilly/bedwars/menusystem/menu/PlayAGameMenu.java index 22f46f0..3657653 100644 --- a/src/main/java/rip/tilly/bedwars/menusystem/menu/PlayAGameMenu.java +++ b/src/main/java/rip/tilly/bedwars/menusystem/menu/PlayAGameMenu.java @@ -41,16 +41,7 @@ public class PlayAGameMenu extends Menu { Player player = (Player) event.getWhoClicked(); if (event.getView().getTitle().equalsIgnoreCase(CC.translate("&eSelect a game to play..."))) { - switch (event.getCurrentItem().getType()) { - case WOOD_SWORD: - break; - case STONE_SWORD: - break; - case IRON_SWORD: - break; - case DIAMOND_SWORD: - break; - } + this.main.getQueueManager().addPlayerToQueue(player, BedWars.getInstance().getPlayerDataManager().getPlayerData(player.getUniqueId()), this.gameType); player.closeInventory(); }