Custom Ranks

  • 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.
May 6, 2020
44
0
6
I have found some skripts for ranks but I would like to make my own. Can someone help me?

Commands:
/rank <player> <rank> (To rank a player)
/unrank <player> (To make player default rank)
/ranks list (To list ranks)

Ranks:
Default : No prefix: Grey Chat
Builder: Prefix [Builder] : on chat cancel event and run /broadcast [Builder] <Player Name> <Message>
Mod: Prefix [Mod] : on chat cancel event and run /broadcast [Mod] <Player Name> <Message>
Admin: Prefix [Admin] : on chat cancel event and run /broadcast [Admin] <Player Name> <Message>
Owner: Prefix [Owner] : on chat cancel event and run /broadcast [Owner] <Player Name> <Message>

Thx so much! Can someone help as soon as possible?!
 
untested
Code:
on chat:
    set chat format to "%player's prefix%%player%%player's suffix%: %message%"

command rank <offlineplayer> <text>:
    permission: admin.rank
    permission message: &cInsufficient permissions!
    usage: &c/rank (player) (rank)
    trigger:
        if all groups contains arg-text:
            execute console command "lp user %arg-offlineplayer% parent set %arg-text%"
            send "&aSuccessfully set the rank of %arg-offlineplayer% &ato %arg-text%&a!"

command unrank <offlineplayer>:
    permission: admin.rank
    permission message: &cInsufficient permissions!
    usage: &c/unrank (player)
    trigger:
        execute console command "lp user %arg-offlineplayer% parent set default"
        send "&aSuccessfully set the rank of %arg-offlineplayer% &ato Default!"

command ranks <text="list">:
    permission: admin.rank
    permission message: &cInsufficient permissions!
    usage: &c/ranks list
    trigger:
        if arg-text is "list":
            send "&aAll ranks:"
            loop all groups:
                send "&a- %loop-group%"
 
Status
Not open for further replies.