Merge branch 'main' of https://github.com/Lucanius69/BedWars
This commit is contained in:
commit
a0a1e79138
@ -1,5 +1,6 @@
|
|||||||
package rip.tilly.bedwars.listeners;
|
package rip.tilly.bedwars.listeners;
|
||||||
|
|
||||||
|
import org.bukkit.ChatColor;
|
||||||
import org.bukkit.GameMode;
|
import org.bukkit.GameMode;
|
||||||
import org.bukkit.Material;
|
import org.bukkit.Material;
|
||||||
import org.bukkit.entity.ArmorStand;
|
import org.bukkit.entity.ArmorStand;
|
||||||
@ -146,8 +147,10 @@ public class InteractListener implements Listener {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
name = ChatColor.stripColor(name);
|
||||||
|
|
||||||
switch (name) {
|
switch (name) {
|
||||||
case "&aItem Shop":
|
case "Item Shop":
|
||||||
event.setCancelled(true);
|
event.setCancelled(true);
|
||||||
|
|
||||||
// open item shop gui
|
// open item shop gui
|
||||||
@ -155,7 +158,7 @@ public class InteractListener implements Listener {
|
|||||||
player.sendMessage(CC.translate("&aItem shop menu opened"));
|
player.sendMessage(CC.translate("&aItem shop menu opened"));
|
||||||
|
|
||||||
break;
|
break;
|
||||||
case "&aUpgrades Shop":
|
case "Upgrades Shop":
|
||||||
event.setCancelled(true);
|
event.setCancelled(true);
|
||||||
|
|
||||||
// open upgrades shop gui
|
// open upgrades shop gui
|
||||||
|
Loading…
Reference in New Issue
Block a user