Solved Help - player args

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

aseald

Supporter
Jan 26, 2017
17
3
3
Skript Version: Skript 2.2 (dev24-c)
Minecraft Version: 1.11.2 (Spigot) - Bensku
Code:
http://pastebin.com/n9G5eeXM
Errors on Reload:
Attached

Console Errors:
None

I'm having trouble using player arguments with player's uuid. Can someone educate me? Or expose my stupidness.

For example, I want to use %player-arg% in {lvl::%player's uuid%} and I've tried {lvl::%{player-arg}%'s uuid%} as well.
 

Attachments

  • 2017-02-25_12.55.54.png
    2017-02-25_12.55.54.png
    166.2 KB · Views: 368
Skript Version: Skript 2.2 (dev24-c)
Minecraft Version: 1.11.2 (Spigot) - Bensku
Code:
http://pastebin.com/n9G5eeXM
Errors on Reload:
Attached

Console Errors:
None

I'm having trouble using player arguments with player's uuid. Can someone educate me? Or expose my stupidness.

For example, I want to use %player-arg% in {lvl::%player's uuid%} and I've tried {lvl::%{player-arg}%'s uuid%} as well.
Finally someone that is using the format! :emoji_grinning: (Without us asking them to do it! :emoji_grinning:)
[NOT TESTED]
Try
code_language.skript:
command /playerinfo [<offlineplayer>]:
    trigger: 
        if arg-1 is not set:
            send "&2&m-----------------------------------------------------"
            send "                                  &a&lPlayer Info"
            send "&6» &7Player: &f%player%"
            send "&6» &7Level: &f%{lvl::%uuid of player%}%"
            send "&6» &7Exp: &f%{exp::%uuid of player%}% of %{lvl%{lvl::%uuid of player%}%maxexp}%"
            send "&6» &7Balance: &f%player's balance%"
            send "&2&m-----------------------------------------------------"
        else:
            send "&2&m-----------------------------------------------------"
            send "                                  &a&l%arg 1% Info"
            send "&6» &7Player: &f%arg 1%"
            send "&6» &7Level: &f%{lvl::%uuid of arg 1%}%"
            send "&6» &7Exp: &f%{exp::%uuid of arg 1%}% of %{lvl%{lvl::%uuid of arg 1%}%maxexp}%"
            send "&6» &7Balance: &f%arg 1%'s balance%"
            send "&2&m-----------------------------------------------------"
 
But then if my argument is like 1hjadbdbi1 and that player hasn't joined my server it will be <none>.
[doublepost=1488059790,1488059564][/doublepost]Nevermind I found a solution, thank you very much.
 
  • Like
Reactions: KingAlterIV
Status
Not open for further replies.