Ranks GUI

  • 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 community!

    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.

Reblxtemp3r

Member
May 8, 2018
3
0
0
Hey, so I'm trying to make a skript for my server.
I have my rank gui made with /grant
01c91893a62b9fee1fdff08e1f1675a4.png

(https://gyazo.com/01c91893a62b9fee1fdff08e1f1675a4)
I want to be able to see who has granted who which rank with a command like /grants <player>
This would open a gui that has paper in it that says who gave the rank, what rank and possibly when however I don't understand or even know how to. I've tried storing variables when the luckperms command is executed then grabbing them when I open the gui however that hasn't worked. Any support is highly appreciated.
 
Can i have ur code ?

command /updaterank [<offline player>] [<text>] [<text>] [<text>]:

permission: techtonic.grant

permission message: &cNo Perms.

trigger:

if arg 1 is not set:

send "&3Techtonic Grant &7> &eUse &3/grant <player>"

if arg 1 is set:

make console execute command "lp user %arg-1% group set %arg-2% "

send "&eSuccessfully Updated The Players Rank" to player

send "&eName: &3%arg-1%" to player

send "&eRank: &3%arg-2%" to player

send "&eReason: &3%arg-3%" to player



send "&eYour Rank Has Been Updated" to arg-1

send "&eName: &3%arg-1%" to arg-1

send "&eRank: &3%arg-2%" to arg-1

send "&eReason: &3%arg-3%" to arg-1

make console execute command "grants add %arg-1% &3%arg-2% &eadded by &3%player% &efor &3%arg-3%"
add 1 to {_slot}
add 1 to {_thing}



command /gcheck [<offline player>]:
permission: techtonic.grant
trigger:
if arg 1 is set:
open chest with 4 rows named "&cGrants" to player
format slot {_slot} of player with paper named "{_test}" to be unstealable
 
like this??

Code:
command /grant [<offline player>]:
    trigger:
        if arg 1 is set:
            set {granter::%arg 1%::%player%} to "%player%"
            set {granted::%arg 1%} to arg 1
            send "done"

command /gcheck [<offline player>]:
    permission: techtonic.grant
    trigger:
        if arg 1 is set:
            open chest with 1 rows named "&cGrants" to player
            format slot 0 of player with paper named "Name: %{granted::%arg 1%}%" with lore "Granted By: %{granter::%arg 1%::*}%" to be unstealable
 
like this??

Code:
command /grant [<offline player>]:
    trigger:
        if arg 1 is set:
            set {granter::%arg 1%::%player%} to "%player%"
            set {granted::%arg 1%} to arg 1
            send "done"

command /gcheck [<offline player>]:
    permission: techtonic.grant
    trigger:
        if arg 1 is set:
            open chest with 1 rows named "&cGrants" to player
            format slot 0 of player with paper named "Name: %{granted::%arg 1%}%" with lore "Granted By: %{granter::%arg 1%::*}%" to be unstealable
It just comes up with this
1ea2e104bb4c6e1d72d395fda2823b72.png

https://gyazo.com/1ea2e104bb4c6e1d72d395fda2823b72 whether they've been given a rank or not
 
Status
Not open for further replies.