HOW to set permissions for a GUI slot?

  • 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.

EcHo SKitt

Member
Oct 25, 2019
3
0
0
23
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

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"]
 
Status
Not open for further replies.