Jump to content

Player's UUID convert to player


Recommended Posts

Hi,

Im trying to make a leaderboard (shows top 5 token balances) and i need to display the amount with the player's username. The issue I'm encountering is that i can't seem to transform the player's uuid to the player's name. When looking around on the internet i found this:
 

player from [uuid] %string% (https://docs.skunity.com/syntax/search/id:1379)

Example: set {_player} to player from uuid "be501....." => but this throws an error: can't understand this condition

This is my current code:   

set {_tokenTop::*} to sorted {tokens::*}
loop {_tokenTop::*}:
	set {_u} to loop-index parsed as offline player's uuid
	set {_player} to player from uuid "%{_u}%"
	send "%{_tokenTop::%loop-index%}% and %{_player}%" to player

tokens::* = list variable with index = player's uuid
at the moment, this will show all the values stored in the list variable and not the top 5, I am aware!

Thanks in advance

Edited by FlapKakker
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...