Jump to content

Skript ranks


_0090

Recommended Posts

Hey I've got a solution although it uses skript you need a few plugins that you should already have!

Plugins needed:

- Skript (duh xD)

- Vault

- Luckperms

 

Hopes this helps! ^^

 

[WARNING] Untested [WARNING]

Code:

#This is a config type thing Edit stuff past the colons only
Options:
    permmsg: &cNo permission!
    perm: ranks.grant

#If you know how to skript you can fiddle with this part
on chat:
    set chat format to "%player's prefix% %player's nickname% >> %message%"

#This command is for giving players a rank!
command /grant [<player>] [<text>]:
    permission: {@perm}
    permission message: {@permmsg}
    usage: /grant <player> <rank>
    trigger:
        if arg-1 is not set:
            send "&cSpecify Player!"
        if arg-1 is set:
            if arg-2 is not set:
                send "&cSpecify rank to give player!"
            if arg-2 is set:
                execute command "/lp user %arg-1% parent add %arg-2%"
        
    

 

Edited by ___Rodney_RWR___
fixed code (thx tarna) still untested

-------------------------------------------------------------------

NO RANK ALL THE WAY

---------------------------------------------------------------------

play.koolkidzmc.com (Velocity + Pufferfish FTW)
discord.koolkidzmc.com

Spoiler

/_(•v•)_7

image_2021-07-26_104856.png.7740cf6322d3693f332894c1e8485060.png


image_2021-07-26_104457.png

pogies.PNG

Link to comment
Share on other sites

3 minutes ago, ___Rodney_RWR___ said:

Hey I've got a solution although it uses skript you need a few plugins that you should already have!

Plugins needed:

- Skript (duh xD)

- Vault

- Luckperms

[WARNING] Untested [WARNING]

Code:

#This is a config type thing Edit stuff past the colons only
Options:
    permmsg: &cNo permission!
    perm: ranks.grant

#If you know how to skript you can fiddle with this part
on chat:
    set chat format to "%player's prefix% %player's nickname% >> %message%"

#This command is for giving players a rank!
command /grant [<player>] [<text>]:
    permission: {@perm}
    permission message: {@permmsg}
    usage: /grant <player> <rank>
    trigger:
        if arg-1 is not set:
            send "&cSpecify Player!"
        if arg-1 is set:
            if arg-2 is not set:
                send "&cSpecify rank to give player!"
            if arg-2 is set:
                execute command "/lp user %{arg-1}% parent add %{arg-2}%"
        
    

 

That command is not gonna work. You are using global variables which you never defined. Think you mean %arg-1% and %arg-2%

Discord - tarna256

In-game name - _Tarna_

Website - https://tarna.dev
Paste Site: https://paste.tarna.dev

---------------------------------------------------------

[VIP] - 7/27/2020

Support - 7/8/20 | 11/3/20

Helper  - 11/3/20 - 2/21/21

Moderator - 2/21/21 - 5/17/21

❤️ - 5/17/21 - now

Moderator - 12/20/22 - now

---------------------------------------------------------

image.png.70849a9b84e0347ce107b8e3eaee312c.pngimage.png.2111009afbd8bef10966ba9ede35a199.png

Link to comment
Share on other sites

yea lol i haven't made a proper skript in ages and didnt test at all i will fix thx

-------------------------------------------------------------------

NO RANK ALL THE WAY

---------------------------------------------------------------------

play.koolkidzmc.com (Velocity + Pufferfish FTW)
discord.koolkidzmc.com

Spoiler

/_(•v•)_7

image_2021-07-26_104856.png.7740cf6322d3693f332894c1e8485060.png


image_2021-07-26_104457.png

pogies.PNG

Link to comment
Share on other sites

1 minute ago, ___Rodney_RWR___ said:

yea lol i haven't made a proper skript in ages and didnt test at all i will fix thx

Another thing I just noticed is that %player's nickname% isn't a thing. Just use %player% or %player's displayname% to show the player name. Note that %player's displayname% will also show the prefix and suffix depending on how the permission plugin is set up.

Discord - tarna256

In-game name - _Tarna_

Website - https://tarna.dev
Paste Site: https://paste.tarna.dev

---------------------------------------------------------

[VIP] - 7/27/2020

Support - 7/8/20 | 11/3/20

Helper  - 11/3/20 - 2/21/21

Moderator - 2/21/21 - 5/17/21

❤️ - 5/17/21 - now

Moderator - 12/20/22 - now

---------------------------------------------------------

image.png.70849a9b84e0347ce107b8e3eaee312c.pngimage.png.2111009afbd8bef10966ba9ede35a199.png

Link to comment
Share on other sites

oh yea uhh players nickname is an essentials thing isnt it

 edit: tarna if you find anthing else thats wrong uhh just delete my comment 😐

Edited by ___Rodney_RWR___

-------------------------------------------------------------------

NO RANK ALL THE WAY

---------------------------------------------------------------------

play.koolkidzmc.com (Velocity + Pufferfish FTW)
discord.koolkidzmc.com

Spoiler

/_(•v•)_7

image_2021-07-26_104856.png.7740cf6322d3693f332894c1e8485060.png


image_2021-07-26_104457.png

pogies.PNG

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...