Jump to content

Need help


S_t_a_i_n

Recommended Posts

Can anyone help me with skripting? I dont know what to write. Im trying to make a custom command, like /rank.

Instead of /pex user {user} group set {group} ( Yes, i am using PEX. ), It could be /rank.

Can you guys help me over here? 

Thanks. 

- WinterFedoraSadGif.gif.3ac6b087109a25f934985280151c7171.gif

Screenshot_49.png.391647f40dd20d7ce6217bca456b44af.png 

 

MamaSita

not banned

 

Link to comment
Share on other sites

Use the plugin Sk-Perm. Here is an example:
 

command /rank [<offline player>] [<text>]:
    permission: perm.node
    permission message: &cYou do not have permission
    trigger:
        if arg 1 is set:
            if arg 2 is set:
                add arg 1 to group arg 2
                send formatted "&aSuccessfully added &f%arg 1% &ato group &f%(capitalized arg 2)%"
                send formatted "&aYour group has been set to &f%(capitalized arg 2)% &aby &f%player%" to arg 1
            else:
                send formatted "&cIncorrect Usage! /rank (player) (text)"
        else:
            send formatted "&cIncorrect Usage! /rank (player) (text)"

Please let me know if this doesn't work in a reply to this thread 🙂

  • Thanks 1

Junior Mod (01/04/2020) - Resigned 

 Discord » Koronotchi#0001 
Minecraft Username » Koronotchi 

image.png.17a385f298c8969f6b1cf03e27ee50d3.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...