Executing commands

Status
This thread has been locked.

Sinnethh

Premium
Feedback score
1
Posts
55
Reactions
6
Resources
0
I'm working on a skript that allows you to buy/see all crate keys on the server, I'm trying to make it so you can click on one key and it opens a whole new GUI
im using the code to close then run [make player execute command "/VoteKey s"]
but nothing happens can someone please help me
 
PebbleHost
High performance, consistent uptime and fast support. Minecraft hosting that just works.

Sinnethh

Premium
Feedback score
1
Posts
55
Reactions
6
Resources
0
command /keys [<text>]:
trigger:
if arg-1 is set:
open chest with 3 rows named "&6Key Menu" to player
wait 1 tick
#--------------------------------------------------------
# Ability to change the ban time at the end of each code
#--------------------------------------------------------
format slot 0 of player with 160:15 named "&cKeys" to close
format slot 1 of player with 160:15 named "&cKeys" to close
format slot 2 of player with 160:15 named "&cKeys" to close
format slot 3 of player with 160:15 named "&cKeys" to close
format slot 4 of player with 160:15 named "&cKeys" to close
format slot 5 of player with 160:15 named "&cKeys" to close
format slot 6 of player with 160:15 named "&cKeys" to close
format slot 7 of player with 160:15 named "&cKeys" to close
format slot 8 of player with 160:15 named "&cKeys" to close
format slot 9 of player with 160:15 named "&cKeys" to close
format slot 10 of player with 160:15 named "&cKeys" to close
format slot 11 of player with 131 named "&aVote Key" to close then run [make player execute command "/VoteKey s"]
format slot 12 of player with 160:15 named "&cKeys" to close
format slot 13 of player with 131 named "&9Rare Key" to close
format slot 14 of player with 160:15 named "&cKeys" to close
format slot 15 of player with 131 named "&4Insane Key" to close
format slot 16 of player with 160:15 named "&cKeys" to close
format slot 17 of player with 160:15 named "&cKeys" to close
format slot 18 of player with 160:15 named "&cKeys" to close
format slot 19 of player with 160:15 named "&cKeys" to close
format slot 20 of player with 160:15 named "&cKeys" to close
format slot 21 of player with 160:15 named "&cKeys" to close
format slot 22 of player with 160:15 named "&cKeys" to close
format slot 23 of player with 160:15 named "&cKeys" to close
format slot 24 of player with 160:15 named "&cKeys" to close
format slot 25 of player with 160:15 named "&cKeys" to close
format slot 26 of player with 160:15 named "&cKeys" to close


command /VoteKey [<text>]:
trigger:
if arg-1 is set:
open chest with 3 rows named "&aVote Keys Menu" to player
wait 1 tick
#--------------------------------------------------------
# Ability to change the ban time at the end of each code
#--------------------------------------------------------
format slot 0 of player with 160:15 named "&cKeys" to close
 

DamagedShadows

Supreme
Feedback score
0
Posts
943
Reactions
157
Resources
0
"&aVote Key" to close then run [make player execute command "/VoteKey s"]

To

"&aVote Key" to close then run "/VoteKey s"
 
Status
This thread has been locked.
Top