From c9ec9b7400b520089549d2b9a111fc606d03f8f9 Mon Sep 17 00:00:00 2001 From: Trixkz Date: Tue, 23 Nov 2021 13:06:03 -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 ca9740b..2c4a73a 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; @@ -146,8 +147,10 @@ public class InteractListener implements Listener { return; } + name = ChatColor.stripColor(name); + switch (name) { - case "&aItem Shop": + case "Item Shop": event.setCancelled(true); // open item shop gui @@ -155,7 +158,7 @@ public class InteractListener implements Listener { player.sendMessage(CC.translate("&aItem shop menu opened")); break; - case "&aUpgrades Shop": + case "Upgrades Shop": event.setCancelled(true); // open upgrades shop gui