From b14bf16bc5d8e05caa48f5631884df18768441f2 Mon Sep 17 00:00:00 2001 From: Trixkz Date: Mon, 22 Nov 2021 07:33:47 -0500 Subject: [PATCH] fixed some shit --- .../tilly/bedwars/menusystem/menu/PlayAGameMenu.java | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) 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(); }