Solved Set a players group with pex

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

  • 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.
Apr 22, 2020
18
1
3
24
Ok,
So I want to have a /join command and a /leave command.
When a player uses /join it would set their rank to an event rank.
I don't know / cant use the player variable
Heres the skript

command leave:
trigger:
execute console command "pex user {%player%} group set default"
teleport player to world "Void"
teleport player to location 10, 65, -10
[doublepost=1587529325,1587529266][/doublepost]All the spaces are where they should be
Its not showing up for the text here
 
Ok,
So I want to have a /join command and a /leave command.
When a player uses /join it would set their rank to an event rank.
I don't know / cant use the player variable
Heres the skript

command leave:
trigger:
execute console command "pex user {%player%} group set default"
teleport player to world "Void"
teleport player to location 10, 65, -10
[doublepost=1587529325,1587529266][/doublepost]All the spaces are where they should be
Its not showing up for the text here
The expression of a player is %player%. When you use {} is when you will use a variable. In this case:
code_language.skript:
command /leave:
    trigger:
        console command "pex user %player% group set default"
        teleport player to world "Void"
        wait a tick
        teleport player to location 10, 65, -10
[doublepost=1587530686][/doublepost]Ps: To write in code format use:

upload_2020-4-22_0-44-41.png
 
Status
Not open for further replies.