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

Rank Grant Gui Confirmation Help

Discussion in 'Skript' started by NeonFox__, Nov 2, 2019.

  1. NeonFox__

    NeonFox__ Member

    Joined:
    Oct 25, 2019
    Messages:
    16
    Likes Received:
    0
    command /grant [<offline player>]:
    aliases: /rank
    permission: system.rank
    permission message: &6&lu want owner? &cNO
    trigger:
    if arg-1 is not set:
    send "&e/rank <player> &7- Give users ranks &e[&dStaff&7:&dDonator&7:&dYT&e]"
    send "&e/grant <player> &7- Give users ranks &e[&dStaff&7:&dDonator&7:&dYT&e]"
    else:
    open chest with 1 rows named "&cGrant Ranks Menu | By R4yx__" to player
    wait 4 tick
    format slot 0 of player with white wool named "&aWorldedit Permissions" with lore "&9Give a player ability to use worldedit." to close then run [make player execute command "pex user %arg-1% add worldedit.*"]
    format slot 1 of player with light gray wool named "&aPlace bedrock" with lore "&9Give a player ability to place bedrock." to close then run [make player execute command "pex user %arg-1% add bedrock.place"]
    format slot 2 of player with gray Stained Glass Pane named "&3&lClose" to close
    format slot 3 of player with gray wool named "&aTalk Powers" with lore "&9Give a player ability to talk when chat is muted." to close then run [make player execute command "pex user %arg-1% add chat.mute.bypass"]
    format slot 4 of player with paper named "&3&lStaff Ranks" to run [make player execute command "SetRank1 %arg-1%"]
    format slot 5 of player with gray wool named "&4Revoke Talk Powers" with lore "&9Revoke player's ability to talk during chat is muted." to close then run [make player execute command "pex user %arg-1% remove chat.mute.bypass"]
    format slot 6 of player with gray Stained Glass Pane named "&3&lClose" to close
    format slot 7 of player with light gray wool named "&4Revoke Place bedrock" with lore "&9Revoke the player's ability to place bedrock." to close then run [make player execute command "pex user %arg-1% remove bedrock.place"]
    format slot 8 of player with white wool named "&4Revoke Worldedit Permissions" with lore "&9Revoke the player's ability to use worldedit." to close then run [make player execute command "pex user %arg-1% remove worldedit.*"]
    command /SetRank1 [<offline player>]:
    aliases: /SR1 , /sk1
    permission: system.rank
    permission message: &1SetRank> &7No Permission
    trigger:
    if arg-1 is not set:
    send "&4"
    else:
    open chest with 6 rows named "&cStaff Ranks" to player
    wait 4 tick
    format slot 0 of player with paper named "&3&lBack" to run [make player execute command "grant %arg-1%"]
    format slot 1 of player with red wool named "&4&lOwner Group" with lore "&9Rank players to Owner" to close then run [make player execute command "pex user %arg-1% group set Owner"]
    format slot 2 of player with pink wool named "&c&lManager Group" with lore "&9Rank players to Manager" to close then run [make player execute command "pex user %arg-1% group set Manager"]
    format slot 3 of player with light blue wool named "&bDeveloper" with lore "&9Rank players to Developer." to close then run [make player execute command "pex user %arg-1% group set Developer"]
    format slot 4 of player with purple wool named "&cSR.Admin" with lore "&9Rank players to SR.Admin." to close then run [make player execute command "pex user %arg-1% group set sr.admin"]
    format slot 5 of player with light gray wool named "&cAdmin Group" with lore "&9Rank players to Admin." to close then run [make player execute command "pex user %arg-1% group set Admin"]
    format slot 6 of player with yellow wool named "&eModerator Group" with lore "&9Rank players to Moderator." to close then run [make player execute command "pex user %arg-1% group set Moderator"]
    format slot 7 of player with lime wool named "&2&lHead Builder Group" with lore "&9Rank players to head Builder." to close then run [make player execute command "pex user %arg-1% group set Head-Builder"]
    format slot 8 of player with green wool named "&eBuilder Group" with lore "&9Rank players to Builder." to close then run [make player execute command "pex user %arg-1% group set Builder"]
    format slot 9 of player with lime wool named "&eHelper Group" with lore "&9Rank players to Helper." to close then run [make player execute command "pex user %arg-1% group set helper"]
    format slot 10 of player with white wool named "&eTrainee Group" with lore "&9Rank players to Trainee." to close then run [make player execute command "pex user %arg-1% group set Trainee"]

    Does anyone know a solution to making a confirmation for GUI? If so msg me discord ugly scp tato#3884 or just post it here


    Thank you!
     
    #1 NeonFox__, Nov 2, 2019
    Last edited: Nov 2, 2019
  2. Marsbar

    Marsbar Well-Known Member

    Joined:
    Mar 31, 2019
    Messages:
    81
    Likes Received:
    2
    Can u format i into code? Press the + button and then add code
     
  3. NeonFox__

    NeonFox__ Member

    Joined:
    Oct 25, 2019
    Messages:
    16
    Likes Received:
    0
    Code (Text):
    1.  
    2. command /grant [<offline player>]:
    3.     aliases: /rank
    4.     permission: system.rank
    5.     permission message: &6&lu want owner? &cNO
    6.     trigger:
    7.         if arg-1 is not set:
    8.             send "&e/rank <player> &7- Give users ranks &e[&dStaff&7:&dDonator&7:&dYT&e]"
    9.             send "&e/grant <player> &7- Give users ranks &e[&dStaff&7:&dDonator&7:&dYT&e]"
    10.         else:
    11.             open chest with 1 rows named "&cGrant Ranks Menu | By R4yx__" to player
    12.             wait 4 tick
    13.             format slot 0 of player with white wool named "&aWorldedit Permissions" with lore "&9Give a player ability to use worldedit." to close then run [make player execute command "pex user %arg-1% add worldedit.*"]
    14.             format slot 1 of player with light gray wool named "&aPlace bedrock" with lore "&9Give a player ability to place bedrock." to close then run [make player execute command "pex user %arg-1% add bedrock.place"]
    15.             format slot 2 of player with gray Stained Glass Pane named "&3&lClose" to close
    16.             format slot 3 of player with gray wool named "&aTalk Powers" with lore "&9Give a player ability to talk when chat is muted." to close then run [make player execute command "pex user %arg-1% add chat.mute.bypass"]
    17.             format slot 4 of player with paper named "&3&lStaff Ranks" to run [make player execute command "SetRank1 %arg-1%"]
    18.             format slot 5 of player with gray wool named "&4Revoke Talk Powers" with lore "&9Revoke player's ability to talk during chat is muted." to close then run [make player execute command "pex user %arg-1% remove chat.mute.bypass"]
    19.             format slot 6 of player with gray Stained Glass Pane named "&3&lClose" to close
    20.             format slot 7 of player with light gray wool named "&4Revoke Place bedrock" with lore "&9Revoke the player's ability to place bedrock." to close then run [make player execute command "pex user %arg-1% remove bedrock.place"]
    21.             format slot 8 of player with white wool named "&4Revoke Worldedit Permissions" with lore "&9Revoke the player's ability to use worldedit." to close then run [make player execute command "pex user %arg-1% remove worldedit.*"]
    22. command /SetRank1 [<offline player>]:
    23.     aliases: /SR1 , /sk1
    24.     permission: system.rank
    25.     permission message: &1SetRank> &7No Permission
    26.     trigger:
    27.         if arg-1 is not set:
    28.             send "&4"
    29.         else:
    30.             open chest with 6 rows named "&cStaff Ranks" to player
    31.             wait 4 tick
    32.             format slot 0 of player with paper named "&3&lBack" to run [make player execute command "grant %arg-1%"]
    33.             format slot 1 of player with red wool named "&4&lOwner Group" with lore "&9Rank players to Owner" to close then run [make player execute command "pex user %arg-1% group set Owner"]
    34.             format slot 2 of player with pink wool named "&c&lManager Group" with lore "&9Rank players to Manager" to close then run [make player execute command "pex user %arg-1% group set Manager"]
    35.             format slot 3 of player with light blue wool named "&bDeveloper" with lore "&9Rank players to Developer." to close then run [make player execute command "pex user %arg-1% group set Developer"]
    36.             format slot 4 of player with purple wool named "&cSR.Admin" with lore "&9Rank players to SR.Admin." to close then run [make player execute command "pex user %arg-1% group set sr.admin"]
    37.             format slot 5 of player with light gray wool named "&cAdmin Group" with lore "&9Rank players to Admin." to close then run [make player execute command "pex user %arg-1% group set Admin"]
    38.             format slot 6 of player with yellow wool named "&eModerator Group" with lore "&9Rank players to Moderator." to close then run [make player execute command "pex user %arg-1% group set Moderator"]
    39.             format slot 7 of player with lime wool named "&2&lHead Builder Group" with lore "&9Rank players to head Builder." to close then run [make player execute command "pex user %arg-1% group set Head-Builder"]
    40.             format slot 8 of player with green wool named "&eBuilder Group" with lore "&9Rank players to Builder." to close then run [make player execute command "pex user %arg-1% group set Builder"]
    41.             format slot 9 of player with lime wool named "&eHelper Group" with lore "&9Rank players to Helper." to close then run [make player execute command "pex user %arg-1% group set helper"]
    42.             format slot 10 of player with white wool named "&eTrainee Group" with lore "&9Rank players to Trainee." to close then run [make player execute command "pex user %arg-1% group set Trainee"]
    43.  
    Dat is the code, can somebody come up with a way to make a confirmation gui!
    <3 you if you do, msg me on discord ugly scp tato#3884 or post here <3
     
    #3 NeonFox__, Nov 2, 2019
    Last edited: Nov 2, 2019
Loading...