1. 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!

  2. LOOKING FOR A VERSION OF SKRIPT?

    You can always check out our Wiki for downloads and any other information about Skript!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Solved Help needed with gui for rank system

Discussion in 'Skript' started by CasDOorn, Mar 30, 2020.

Thread Status:
Not open for further replies.
  1. CasDOorn

    CasDOorn New Member

    Joined:
    Mar 30, 2020
    Messages:
    9
    Likes Received:
    0
    Hi i have a problem with my code when i try this code:

    Code (Text):
    1. options:
    2.     p: &f[&aNew&2Name&f]
    3.  
    4. command rank [<offline player>] [<text>] [<text>]:
    5.     permission: lobby.staff
    6.     permission message: &cYou do not have those permissions.
    7.     trigger:
    8.         if arg-1 is set:
    9.             if arg-2 is set:
    10.                 if arg-3 is not set:
    11.                     open chest with 3 rows named "&fSelect the category!" to player
    12.                     format slot 0 of player with gray glass pane named "&f" to close then run [make player execute command "rank %arg-1% %arg-2%"]  
    13.                     format slot 1 of player with gray glass pane named "&f" to close then run [make player execute command "rank %arg-1% %arg-2%"]  
    14.                     format slot 2 of player with gray glass pane named "&f" to close then run [make player execute command "rank %arg-1% %arg-2%"]
    15.                     format slot 3 of player with gray glass pane named "&f" to close then run [make player execute command "rank %arg-1% %arg-2%"]  
    16.                     format slot 4 of player with gray glass pane named "&f" to close then run [make player execute command "rank %arg-1% %arg-2%"]      
    17.                     format slot 5 of player with gray glass pane named "&f" to close then run [make player execute command "rank %arg-1% %arg-2%"]
    18.                     format slot 6 of player with gray glass pane named "&f" to close then run [make player execute command "rank %arg-1% %arg-2%"]
    19.                     format slot 7 of player with gray glass pane named "&f" to close then run [make player execute command "rank %arg-1% %arg-2%"]
    20.                     format slot 8 of player with gray glass pane named "&f" to close then run [make player execute command "rank %arg-1% %arg-2%"]
    21.                     format slot 9 of player with gray glass pane named "&f" to close then run [make player execute command "rank %arg-1% %arg-2%"]
    22.                     format slot 10 of player with wooden axe named "&f| &cStaff &f|" with lore "&fOnly for people who are staff and had been promoted or demoted" to close then run [make player execute command "rank %arg-1% %arg-2% staff"]
    23.                     format slot 11 of player with gray glass pane named "&f" to close then run [make player execute command "rank %arg-1% %arg-2%"]
    24.                     format slot 12 of player with gray glass pane named "&f" to close then run [make player execute command "rank %arg-1% %arg-2%"]
    25.                     format slot 13 of player with hook named "&f| &9Playtime &f|" with lore "&fOnly for players with a certain amount of playtime" to close then run [make player execute command "rank %arg-1% %arg-2% playtime"]
    26.                     format slot 14 of player with gray glass pane named "&f" to close then run [make player execute command "rank %arg-1% %arg-2%"]
    27.                     format slot 15 of player with gray glass pane named "&f" to close then run [make player execute command "rank %arg-1% %arg-2%"]
    28.                     format slot 16 of player with diamond named "&f| &6Buy &f|" with lore "&fOnly for donators or people who bought a rank" to close then run [make player execute command "rank %arg-1% %arg-2% donator"]
    29.                     format slot 17 of player with gray glass pane named "&f" to close then run [make player execute command "rank %arg-1% %arg-2%"]
    30.                     format slot 18 of player with gray glass pane named "&f" to close then run [make player execute command "rank %arg-1% %arg-2%"]
    31.                     format slot 19 of player with gray glass pane named "&f" to close then run [make player execute command "rank %arg-1% %arg-2%"]
    32.                     format slot 20 of player with gray glass pane named "&f" to close then run [make player execute command "rank %arg-1% %arg-2%"]
    33.                     format slot 21 of player with gray glass pane named "&f" to close then run [make player execute command "rank %arg-1% %arg-2%"]
    34.                     format slot 22 of player with gray glass pane named "&f" to close then run [make player execute command "rank %arg-1% %arg-2%"]
    35.                     format slot 23 of player with gray glass pane named "&f" to close then run [make player execute command "rank %arg-1% %arg-2%"]
    36.                     format slot 24 of player with gray glass pane named "&f" to close then run [make player execute command "rank %arg-1% %arg-2%"]
    37.                     format slot 25 of player with gray glass pane named "&f" to close then run [make player execute command "rank %arg-1% %arg-2%"]
    38.                     format slot 26 of player with gray glass pane named "&f" to close then run [make player execute command "rank %arg-1% %arg-2%"]
    39.                     format slot 27 of player with gray glass pane named "&f" to close then run [make player execute command "rank %arg-1% %arg-2%"]
    40.                 if arg-3 is "staff":
    41.                     wait a tick
    42.                     open chest with 3 rows named "&fSelect a rank!" to player
    43.                     format slot 0 of player with gray glass pane named "&f" to close then run [make player execute command "rank %arg-1% %arg-2%"]  
    44.                     format slot 1 of player with gray glass pane named "&f" to close then run [make player execute command "rank %arg-1% %arg-2%"]  
    45.                     format slot 2 of player with gray glass pane named "&f" to close then run [make player execute command "rank %arg-1% %arg-2%"]
    46.                     format slot 3 of player with gray glass pane named "&f" to close then run [make player execute command "rank %arg-1% %arg-2%"]  
    47.                     format slot 4 of player with gray glass pane named "&f" to close then run [make player execute command "rank %arg-1% %arg-2%"]      
    48.                     format slot 5 of player with gray glass pane named "&f" to close then run [make player execute command "rank %arg-1% %arg-2%"]
    49.                     format slot 6 of player with gray glass pane named "&f" to close then run [make player execute command "rank %arg-1% %arg-2%"]
    50.                     format slot 7 of player with gray glass pane named "&f" to close then run [make player execute command "rank %arg-1% %arg-2%"]
    51.                     format slot 8 of player with gray glass pane named "&f" to close then run [make player execute command "rank %arg-1% %arg-2%"]
    52.                     format slot 9 of player with gray glass pane named "&f" to close then run [make player execute command "rank %arg-1% %arg-2%"]
    53.                     format slot 10 of player with red clay named "&f| &4Owner &f|" to close then run [make console execute command "pex user %arg-1% group set Owner"]->[send "{@p} You have changed the rank of &2%arg-1% &f to &f[&4Owner&f] with the reason &a%arg-2%!" to player]->[send "{@p} &2%player% &fhas changed your rank to &f[&4Owner&f] with the reason &a%arg-2%&f!" to arg-1]
    54.                     format slot 11 of player with pink clay named "&f| &cAdmin &f|" to close then run [make console execute command "pex user %arg-1% group set Admin"] ->[send "{@p} You have changed the rank of &2%arg-1% &f to &f[&cAdmin&f] with the reason &a%arg-2%!" to player]->[send "{@p} &2%player% &fhas changed your rank to &f[&cAdmin&f] with the reason &a%arg-2%&f!" to arg-1]
    55.                     format slot 12 of player with gray glass pane named "&f" to close then run [make player execute command "rank %arg-1% %arg-2%"]
    56.                     format slot 13 of player with light blue clay named "&f| &9Mod &f|" to close then run [make console execute command "pex user %arg-1% group set Mod"]->[send "{@p} You have changed the rank of &2%arg-1% &f to &f[&9Mod&f] with the reason &a%arg-2%!" to player]->[send "{@p} &2%player% &fhas changed your rank to &f[&9Mod&f] with the reason &a%arg-2%&f!" to arg-1]
    57.                     format slot 14 of player with gray glass pane named "&f" to close then run [make player execute command "rank %arg-1% %arg-2%"]
    58.                     format slot 15 of player with green clay named "&f| &aHelper &f|" to close then run [make console execute command "pex user %arg-1% group set Helper"]->[send "{@p} You have changed the rank of &2%arg-1% &f to &f[&aHelper&f] with the reason &a%arg-2%!" to player]->[send "{@p} &2%player% &fhas changed your rank to &f[&aHelper&f] with the reason &a%arg-2%&f!" to arg-1]
    59.                     format slot 16 of player with yellow clay named "&f| &eBuilder &f|" to close then run [make console execute command "pex user %arg-1% group set Builder"]->[send "{@p} You have changed the rank of &2%arg-1% &f to &f[&eBuilder&f] with the reason &a%arg-2%!" to player]->[send "{@p} &2%player% &fhas changed your rank to &f[&eBuilder&f] with the reason &a%arg-2%&f!" to arg-1]
    60.                     format slot 17 of player with gray glass pane named "&f" to close then run [make player execute command "rank %arg-1% %arg-2%"]
    61.                     format slot 18 of player with gray glass pane named "&f" to close then run [make player execute command "rank %arg-1% %arg-2%"]
    62.                     format slot 19 of player with gray glass pane named "&f" to close then run [make player execute command "rank %arg-1% %arg-2%"]
    63.                     format slot 20 of player with gray glass pane named "&f" to close then run [make player execute command "rank %arg-1% %arg-2%"]
    64.                     format slot 21 of player with gray glass pane named "&f" to close then run [make player execute command "rank %arg-1% %arg-2%"]
    65.                     format slot 22 of player with gray glass pane named "&f" to close then run [make player execute command "rank %arg-1% %arg-2%"]
    66.                     format slot 23 of player with gray glass pane named "&f" to close then run [make player execute command "rank %arg-1% %arg-2%"]
    67.                     format slot 24 of player with gray glass pane named "&f" to close then run [make player execute command "rank %arg-1% %arg-2%"]
    68.                     format slot 25 of player with gray glass pane named "&f" to close then run [make player execute command "rank %arg-1% %arg-2%"]
    69.                     format slot 26 of player with gray glass pane named "&f" to close then run [make player execute command "rank %arg-1% %arg-2%"]
    70.                     format slot 27 of player with gray glass pane named "&f" to close then run [make player execute command "rank %arg-1% %arg-2%"]
    71.             else:
    72.                 send "{@p} Add a reason!" to player
    73.         else:
    74.             send "{@p} Add a player!" to player
    then when i click on any rank like Owner or admin it grabs the block instead of executing the command and also is there a easier way of making it not run when i click on the glass panes.
     

    Attached Files:

  2. Abdera7mane

    Abdera7mane Active Member

    Joined:
    Aug 18, 2019
    Messages:
    56
    Likes Received:
    7
  3. CasDOorn

    CasDOorn New Member

    Joined:
    Mar 30, 2020
    Messages:
    9
    Likes Received:
    0
  4. Abdera7mane

    Abdera7mane Active Member

    Joined:
    Aug 18, 2019
    Messages:
    56
    Likes Received:
    7
    I linked 2 tutorials on my last reply, code examples are provided there,
     
Thread Status:
Not open for further replies.

Share This Page

Loading...