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!


    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.

Offline player uuid not working

Discussion in 'Skript' started by ReportCards, Mar 25, 2018.

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

    ReportCards New Member

    May 27, 2017
    Likes Received:
    When I attempt to get the players uuid to set there skull on a block as there skull it doesn't work

    Code (Skript):
    1. command /donate <offline player> <text>:
    2.     permission: donate.use
    3.     trigger:
    4.         if arg-2 parsed as text is "500c":
    5.             broadcast "&c[&4DONATION&c]&e Everyone please congratulate %arg-1% on getting &c500 Coins"
    6.             set {recent.3buyer} to "%{recent.2buyer}%"
    7.             set {recent.3item} to "&6%{recent.2item}%"
    8.             set {recent.3buyeruuid} to "%{recent.2buyeruuid}%"
    9.             set {recent.2buyer} to "%{recent.1buyer}%"
    10.             set {recent.2item} to "&6%{recent.1item}%"
    11.             set {recent.2buyeruuid} to "%{recent.1buyeruuid}%"
    12.             set {recent.1buyer} to "%arg-1%"
    13.             set {recent.1item} to "&c500 Coins"
    14.             set {recent.1buyeruuid} to "%arg-1's uuid%"
    15.             make console execute command "/updatesigns"
    16.         if arg-2 parsed as text is "1000c":
    17.             broadcast "&c[&4DONATION&c]&e Everyone please congratulate %arg-1% on getting &c1000 Coins"
    18.             set {recent.3buyer} to "%{recent.2buyer}%"
    19.             set {recent.3item} to "&6%{recent.2item}%"
    20.             set {recent.3buyeruuid} to "%{recent.2buyeruuid}%"
    21.             set {recent.2buyer} to "%{recent.1buyer}%"
    22.             set {recent.2item} to "&6%{recent.1item}%"
    23.             set {recent.2buyeruuid} to "%{recent.1buyeruuid}%"
    24.             set {recent.1buyer} to "%arg-1%"
    25.             set {recent.1item} to "&c1000 Coins"
    26.             set {recent.1buyeruuid} to uuid of arg-1 parsed as offline player
    27.             make console execute command "/updatesigns"
    28. command /updatesigns:
    29.     permission: signs.update
    30.     trigger:
    31.         send "&cUpdating signs..."
    32.         make console execute "/blockdata 491 51 497 {Text2:""{\""text\"":\""&6%{recent.1buyer}%\"",\""color\"":\""gold\""}"",Text3:""{\""text\"":\""%{recent.1item}%\"",\""color\"":\""yellow\"",\""bold\"":true}""}"
    33.         make console execute "/blockdata 493 51 497 {Text2:""{\""text\"":\""&6%{recent.2buyer}%\"",\""color\"":\""gold\""}"",Text3:""{\""text\"":\""%{recent.2item}%\"",\""color\"":\""yellow\"",\""bold\"":true}""}"
    34.         make console execute "/blockdata 495 51 497 {Text2:""{\""text\"":\""&6%{recent.3buyer}%\"",\""color\"":\""gold\""}"",Text3:""{\""text\"":\""%{recent.3item}%\"",\""color\"":\""yellow\"",\""bold\"":true}""}"
    35.         make console execute command "/blockdata 491 52 496 {Owner:{Id:""%{recent.1buyeruuid}%"",Name:""%{recent.1buyer}%"",}}"
    36.         make console execute command "/blockdata 493 52 496 {Owner:{Id:""%{recent.2buyeruuid}%"",Name:""%{recent.2buyer}%"",}}"
    37.         make console execute command "/blockdata 495 52 496 {Owner:{Id:""%{recent.3buyeruuid}%"",Name:""%{recent.3buyer}%"",}}"
Thread Status:
Not open for further replies.

Share This Page