From dd8bc88494225709e7f70835e822cfeb4a0defa8 Mon Sep 17 00:00:00 2001 From: Trixkz Date: Mon, 29 Nov 2021 06:25:02 -0500 Subject: [PATCH] t --- .../java/rip/tilly/bedwars/listeners/InteractListener.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/main/java/rip/tilly/bedwars/listeners/InteractListener.java b/src/main/java/rip/tilly/bedwars/listeners/InteractListener.java index 5c932d9..00c7eee 100644 --- a/src/main/java/rip/tilly/bedwars/listeners/InteractListener.java +++ b/src/main/java/rip/tilly/bedwars/listeners/InteractListener.java @@ -1,5 +1,6 @@ package rip.tilly.bedwars.listeners; +import org.bukkit.ChatColor; import org.bukkit.GameMode; import org.bukkit.Material; import org.bukkit.entity.ArmorStand; @@ -150,14 +151,16 @@ public class InteractListener implements Listener { return; } + name = ChatColor.stripColor(name); + switch (name) { - case "&aItem Shop": + case "Item Shop": event.setCancelled(true); new BlocksMenu().openMenu(player); break; - case "&aUpgrades Shop": + case "Upgrades Shop": event.setCancelled(true); new UpgradesMenu(this.plugin.getPlayerMenuUtil(player)).open(player);