How do you make it so only people with a specific permission can see/use a GUI slot
Right now it's only the creative world and the survival but I want to add the VIP worlds
and only allow VIPs to use and see that slot in the GUI
Right now it's only the creative world and the survival but I want to add the VIP worlds
and only allow VIPs to use and see that slot in the GUI
Code:
command /menucreative:
permission: core.setmenublocks
trigger:
set {creative_menublock} to player's held item
send "&2[Set Creative Block]&a %{creative_menublock}%"
command /menusurvival:
permission: core.setmenublocks
trigger:
set {survival_menublock} to player's held item
send "&2[Set Survival Block]&a %{survival_menublock}%"
command /menu:
trigger:
open chest with 4 rows named " &f_____&b————&cPLAY&b————&f_____" for player
wait 1 tick
format slot 2 of player with {creative_menublock} to close then run [execute console command "/mvtp %player% creative"]
format slot 6 of player with {survival_menublock} to close then run [execute console command "/mvtp %player% survival"]