Solved How to replace <none> with 0?

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

SpinKnight

Supporter +
Supporter
May 24, 2017
30
0
6
code_language.skript:
command /score [<Offline player>]:
    Trigger:
        If arg-1 is not set:
            Display board named "&3 &3 &b&lSpin&c&lFactions&3 &3" to player
            Make score of "&1" in board of player to 10
            Make score of "&aOnline:" in board of player to 9
            Make score of "&3%number of all players%&a/&350" in board of player to 8
            Make score of "&2" in board of player to 7
            Make score of "&aPenge:" in board of player to 6
            Make score of "&3%player's balance%" in board of player to 5
            Make score of "&4" in board of player to 4
            Make score of "&aKills:" in board of player to 3
            Make score of "&3%{kills.%player%}%" in board of player to 2
            Move display of player to sidebar
        
On join:
    make player execute command "score"
    
On first join:
    make player execute command "score"
    
Every 5 seconds:
    make all players execute command "score"
    
On death of a player:
    if attacker is a player:
        add 1 to {kills.%player%}

Hello,

I was wondering if anyone could help me with my "Kills" on my scoreboard. I want it to say 0 when you have no kills, but instead it says "<none>". Anyone know if you can fix that? I'd really appreciate the help!