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.

Is it possible to use player's UUID as a variable?

Discussion in 'Skript' started by Nicore, Feb 18, 2019.

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

    Nicore Member

    Joined:
    Aug 12, 2018
    Messages:
    3
    Likes Received:
    0
    Is it possible to use player's UUID as a variable?
    I have already try
    Code (Text):
    1. {%uuid of player%::*}
    And it said
    Code (Text):
    1. Can't understand the type 'uuid of player'
    Thx~
     
  2. TPGamesNL

    Supporter

    Joined:
    Jan 20, 2018
    Messages:
    1,414
    Likes Received:
    89
    Medals:
    Set a temporary variable to the UUID, and use that variable in your variable.
     
  3. Vrganj

    Vrganj Well-Known Member

    Joined:
    Dec 1, 2018
    Messages:
    67
    Likes Received:
    2
    Code (Skript):
    1.  
    2. set {_uuid} to player's uuid
    3. set {sugma::%{_uuid}%} to true
    4.  
     
  4. ShaneBee

    Resource Staff Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,158
    Likes Received:
    170
    What is the rest of your code that is giving you that error?
    Because `uuid of player` definitely works
     
  5. Adam McGrogan

    Adam McGrogan Member

    Joined:
    Mar 1, 2019
    Messages:
    5
    Likes Received:
    1
    Hello, yes this is possible. I use it and its alot better because the variable does not mess up if the user changes their name. You can use %player's uuid%. Ex: {variable::%player's uuid%}
    If this does not work, feel free to DM.
     
Thread Status:
Not open for further replies.
Loading...