GUI Linking up

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

DoctorHyper

Member
Jul 22, 2017
19
0
1
23
Does anyone know how to link this command:

Code:
command /punish [<player>]:
    aliases: /pun
    permission: server.punish
    trigger:
        if arg-1 is not set:
            send "&cPlease Set A Player (/punish &fTC6&c)"
        if arg-1 is set:
            open chest with 3 rows named "&9&lSelect the staff role!" to player
            wait 1 tick
            format slot 10 of player with Blue Wool named "&9Trial-Mod" with lore "&7This can only be used by &9(Trial-Mod+)" to close then run [execute player command "/ptrialmod %player%"]
            format slot 12 of player with Lime Wool named "&2Mod" with lore "&7This can only be used by &2(Mod+)" to close then run [execute player command "/nothing"]
            format slot 14 of player with Green Wool named "&2Sr.Mod" with lore "&7This can only be used by &2(Sr.Mod+)" to close then run [execute player command "/nothing"]
            format slot 16 of player with Red Wool named "&cAdmin" with lore "&7This can only be used by &c(Admin+)" to close then run [execute player command "/nothing"]

to run /ptrialmod %player% for it to run the command cause it doesnt want to show the other gui and it says there are no errors.

This is other GUI:

Code:
command /ptrialmod [<player>]:
    permission: trialmod.punishment
    permission message: &7This can only be used by &9(Trial-Mod+)
    trigger:
        if arg-1 is not set:
            send "&cPlease Set A Player (/punish &fTC6&c)"
        if arg-1 is set:
            open chest with 3 rows named "Select punishment for %player%" to player
            wait 1 tick
            format slot 10 of arg-1 with Yellow Wool named "&e&lWarning 1" with lore "&7Swearing" to close then run [execute player command "/warn %player% message Chat Related"]

I really dont know how to make them link up together, if anyone knows can you please help me out with this. Thank you all for your time.
 
Requires TuSKe:
Code:
command /punish [<player>]:
    aliases: /pun
    permission: server.punish
    trigger:
        if arg-1 is not set:
            send "&cPlease Set A Player (/punish &fTC6&c)"
        if arg-1 is set:
            open virtual chest with 3 rows named "&9&lSelect the staff role!" to player
            wait 1 tick
            format gui slot 10 of player with Blue Wool named "&9Trial-Mod" with lore "&7This can only be used by &9(Trial-Mod+)" to run:
                open virtual chest with 3 rows named "Select punishment for %player%" to player
                wait 1 tick
                format gui slot 10 of arg-1 with Yellow Wool named "&e&lWarning 1" with lore "&7Swearing" to run:
                    execute player command "/warn %player% message Chat Related"
            format gui slot 12 of player with Lime Wool named "&2Mod" with lore "&7This can only be used by &2(Mod+)" to do nothing
            format gui slot 14 of player with Green Wool named "&2Sr.Mod" with lore "&7This can only be used by &2(Sr.Mod+)" to do nothing
            format gui slot 16 of player with Red Wool named "&cAdmin" with lore "&7This can only be used by &c(Admin+)" to do nothing
 
upload_2020-2-25_15-4-28.png


This came up..
 
upload_2020-2-25_17-10-38.png


it says no errors.. (and yes TuSKe is installed now)
[doublepost=1582656150,1582650647][/doublepost]@Goose do you know how to solve this one??
 
@Zabrid can you send me a link for the function category for skript please, because I still dont know were to get the skript functions, custom commands and other type of skript commands.
 
Status
Not open for further replies.