1. 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!

  2. LOOKING FOR A VERSION OF SKRIPT?

    You can always check out our Wiki for downloads and any other information about Skript!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Solved Set a players group with pex

Discussion in 'Skript' started by WhoCutTheCheese, Apr 22, 2020.

Thread Status:
Not open for further replies.
  1. WhoCutTheCheese

    Joined:
    Apr 22, 2020
    Messages:
    11
    Likes Received:
    1
    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
    --- Double Post Merged, Apr 22, 2020, Original Post Date: Apr 22, 2020 ---
    All the spaces are where they should be
    Its not showing up for the text here
     
  2. couger44

    Supporter

    Joined:
    Feb 19, 2017
    Messages:
    714
    Likes Received:
    31
    The expression of a player is %player%. When you use {} is when you will use a variable. In this case:
    Code (Skript):
    1.  
    2. command /leave:
    3.     trigger:
    4.         console command "pex user %player% group set default"
    5.         teleport player to world "Void"
    6.         wait a tick
    7.         teleport player to location 10, 65, -10
    8.  
    --- Double Post Merged, Apr 22, 2020 ---
    Ps: To write in code format use:

    upload_2020-4-22_0-44-41.png
     
  3. WhoCutTheCheese

    Joined:
    Apr 22, 2020
    Messages:
    11
    Likes Received:
    1
    ps: How do I change it to solved :emoji_grinning:
     
  4. couger44

    Supporter

    Joined:
    Feb 19, 2017
    Messages:
    714
    Likes Received:
    31
    Click there.
    upload_2020-4-22_1-12-8.png
     
Thread Status:
Not open for further replies.

Share This Page

Loading...