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