Nd_ Posted September 22, 2019 Share Posted September 22, 2019 Code: command /playerstats [<offline player>]: trigger: if arg-1 is set: if arg-1 has played on this server before: open virtual chest inventory with size 4 named "&2%arg 1%&2's stats" to player set {number} to 0 loop 36 times: format gui slot {number} of player with lime stained glass pane to do nothing add 1 to {number} format gui slot 13 of player with argument 1's skull named "%arg 1%" with lore "&2Balance: %balance of argument 1%" else: message "&4This player has never played on &2(server name)" else: make player execute command "/playerstats %player%" When I try this to myself, the balance works, but when I try another player, it doesn't work and the balance is <none>. No errors Link to comment Share on other sites More sharing options...
AWorthySon Posted September 26, 2019 Share Posted September 26, 2019 Skript has some issues with finding the balance of an "offline player". Therefore, you should use this expression called "offline player from uuid". Try this: REQUIRES TuSKe ALSO please use 4 spaces, it's much more convenient. command /playerstats [<offline player>]: trigger: if arg-1 is set: if arg-1 has played on this server before: open virtual chest inventory with size 4 named "&2%arg 1%&2's stats" to player loop 36 times: format gui slot (loop-number - 1) of player with lime stained glass pane named "&a" set {_0} to offline player from uuid arg-1's uuid format gui slot 13 of player with arg-1's skull named "%arg 1%" with lore "&2Balance: %balance of {_0}%" else: message "&4This player has never played on &2(server name)" else: make player execute command "/playerstats %player%" Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now