Code:
on death of a player:
attacker is a player
add 1 to {kills.%attacker%}
command /kills [<offline player>]:
trigger:
if arg 1 is set:
send "&3[Kingdoms&bPVP&3]&b %arg 1% har &3%{kills.arg 1}% &bkills!"
else:
send "&3[Kingdoms&bPVP&3]&b Du har &3%{kills.player}% &bkills!"
Every 5 seconds:
loop all players:
set score "&7%{kills.%loop-player%}%&f" in sidebar of loop-player to 9
How do i fix this?
I want it to display the same number but in the command it displays "<None>"