Help for my /shop command

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

3dpixelartman

Member
Jun 23, 2021
23
0
1
24
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?
 
Please try to use something else rather than SkQuery for your guis
 
Status
Not open for further replies.