Hi, I am trying to make a GUI to send a player to another world. My plan is to make the player send the command "/world [world]" as op. I have tried many codes, but none of them worked. Here is my code at the moment:
command /play:
trigger:
open virtual chest inventory with size 3 named "Select Game" to player
format gui slot 11 of player with diamond sword named "&9&lKIT PVP" to run:
make player run command "/world ul_FlatCopy" as op
And here is the error when I try to reload the script:
Can't understand this condition/effect: make player run command "/world ul_FlatCopy" as op (playgui.sk, line 5: make player run command "/world ul_FlatCopy" as op')
I have tried many of them like make player execute command, make player run cmd, but none of them works. I would really appreciate help. Thanks!
command /play:
trigger:
open virtual chest inventory with size 3 named "Select Game" to player
format gui slot 11 of player with diamond sword named "&9&lKIT PVP" to run:
make player run command "/world ul_FlatCopy" as op
And here is the error when I try to reload the script:
Can't understand this condition/effect: make player run command "/world ul_FlatCopy" as op (playgui.sk, line 5: make player run command "/world ul_FlatCopy" as op')
I have tried many of them like make player execute command, make player run cmd, but none of them works. I would really appreciate help. Thanks!