Offline player uuid not working

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

ReportCards

New Member
May 27, 2017
7
2
3
When I attempt to get the players uuid to set there skull on a block as there skull it doesn't work

code_language.skript:
command /donate <offline player> <text>:
    permission: donate.use
    trigger:
        if arg-2 parsed as text is "500c":
            broadcast "&c[&4DONATION&c]&e Everyone please congratulate %arg-1% on getting &c500 Coins"
            set {recent.3buyer} to "%{recent.2buyer}%"
            set {recent.3item} to "&6%{recent.2item}%"
            set {recent.3buyeruuid} to "%{recent.2buyeruuid}%"
            set {recent.2buyer} to "%{recent.1buyer}%"
            set {recent.2item} to "&6%{recent.1item}%"
            set {recent.2buyeruuid} to "%{recent.1buyeruuid}%"
            set {recent.1buyer} to "%arg-1%"
            set {recent.1item} to "&c500 Coins"
            set {recent.1buyeruuid} to "%arg-1's uuid%"
            make console execute command "/updatesigns"
        if arg-2 parsed as text is "1000c":
            broadcast "&c[&4DONATION&c]&e Everyone please congratulate %arg-1% on getting &c1000 Coins"
            set {recent.3buyer} to "%{recent.2buyer}%"
            set {recent.3item} to "&6%{recent.2item}%"
            set {recent.3buyeruuid} to "%{recent.2buyeruuid}%"
            set {recent.2buyer} to "%{recent.1buyer}%"
            set {recent.2item} to "&6%{recent.1item}%"
            set {recent.2buyeruuid} to "%{recent.1buyeruuid}%"
            set {recent.1buyer} to "%arg-1%"
            set {recent.1item} to "&c1000 Coins"
            set {recent.1buyeruuid} to uuid of arg-1 parsed as offline player
            make console execute command "/updatesigns"
command /updatesigns:
    permission: signs.update
    trigger:
        send "&cUpdating signs..."
        make console execute "/blockdata 491 51 497 {Text2:""{\""text\"":\""&6%{recent.1buyer}%\"",\""color\"":\""gold\""}"",Text3:""{\""text\"":\""%{recent.1item}%\"",\""color\"":\""yellow\"",\""bold\"":true}""}"
        make console execute "/blockdata 493 51 497 {Text2:""{\""text\"":\""&6%{recent.2buyer}%\"",\""color\"":\""gold\""}"",Text3:""{\""text\"":\""%{recent.2item}%\"",\""color\"":\""yellow\"",\""bold\"":true}""}"
        make console execute "/blockdata 495 51 497 {Text2:""{\""text\"":\""&6%{recent.3buyer}%\"",\""color\"":\""gold\""}"",Text3:""{\""text\"":\""%{recent.3item}%\"",\""color\"":\""yellow\"",\""bold\"":true}""}"
        make console execute command "/blockdata 491 52 496 {Owner:{Id:""%{recent.1buyeruuid}%"",Name:""%{recent.1buyer}%"",}}"
        make console execute command "/blockdata 493 52 496 {Owner:{Id:""%{recent.2buyeruuid}%"",Name:""%{recent.2buyer}%"",}}"
        make console execute command "/blockdata 495 52 496 {Owner:{Id:""%{recent.3buyeruuid}%"",Name:""%{recent.3buyer}%"",}}"
 
Status
Not open for further replies.