This commit is contained in:
Trixkz 2021-11-29 06:25:02 -05:00
parent 1e35e555c2
commit dd8bc88494

View File

@ -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);