Hi im making a minecraft server and I made a /shop command where players can buy ranks. It works perfectly fine except when clicking any of the iron, gold, diamond or netherrack it does not send the message I'm working on but instead allowed the player to grab the item. Here is the code:
command /shop:
trigger:
open virtual hopper inventory with size 1 named "Buy" to player
format slot 2 of player with paper named "&4&lRanks" with lore "&7Click to open the||&4Ranks &7shop" to run [make player execute command "/ranks"]
format slot 1 of player with tripwire hook named "&4&lKeys" with lore "&7Click to open the||&4Keys &7shop" to run [make player execute command "/shop keys"]
format slot 3 of player with tripwire hook named "&4&lKeyalls" with lore "&7Click to open the||&4Keyall &7shop" to run [make player execute command "/shop keyalls"]
command /ranks:
trigger:
open virtual hopper inventory with size 1 named "Ranks" to player
format slot 0 of player with Iron ingot named "&4&lIron Rank" with lore "&7Click to buy the||&4Iron &7Rank" to run [make player execute command "/iron"]
format slot 1 of player with Gold ingot named "&4&lGold Rank" with lore "&7Click to buy the||&4Gold &7Rank" to run [make player execute command "/gold"]
format slot 3 of player with Diamond named "&4&lDiamond Rank" with lore "&7Click to buy the||&4Diamond &7Rank" to run [make player execute command "/diamond"]
format slot 4 of player with Netherrack named "&4&lNetherite Rank" with lore "&7Click to buy the||&4Netherite &7Rank" to run [make player execute command "/netherite"]
command /iron:
trigger:
send "To be made" to player
command /gold:
trigger:
send "To be made" to player
command /diamond:
trigger:
send "To be made" to player
command /netherite:
trigger:
send "To be made" to player
anyone know why and how to fix?
command /shop:
trigger:
open virtual hopper inventory with size 1 named "Buy" to player
format slot 2 of player with paper named "&4&lRanks" with lore "&7Click to open the||&4Ranks &7shop" to run [make player execute command "/ranks"]
format slot 1 of player with tripwire hook named "&4&lKeys" with lore "&7Click to open the||&4Keys &7shop" to run [make player execute command "/shop keys"]
format slot 3 of player with tripwire hook named "&4&lKeyalls" with lore "&7Click to open the||&4Keyall &7shop" to run [make player execute command "/shop keyalls"]
command /ranks:
trigger:
open virtual hopper inventory with size 1 named "Ranks" to player
format slot 0 of player with Iron ingot named "&4&lIron Rank" with lore "&7Click to buy the||&4Iron &7Rank" to run [make player execute command "/iron"]
format slot 1 of player with Gold ingot named "&4&lGold Rank" with lore "&7Click to buy the||&4Gold &7Rank" to run [make player execute command "/gold"]
format slot 3 of player with Diamond named "&4&lDiamond Rank" with lore "&7Click to buy the||&4Diamond &7Rank" to run [make player execute command "/diamond"]
format slot 4 of player with Netherrack named "&4&lNetherite Rank" with lore "&7Click to buy the||&4Netherite &7Rank" to run [make player execute command "/netherite"]
command /iron:
trigger:
send "To be made" to player
command /gold:
trigger:
send "To be made" to player
command /diamond:
trigger:
send "To be made" to player
command /netherite:
trigger:
send "To be made" to player
anyone know why and how to fix?