Hi, I have a skript which counts player's deaths and I wanted to add a command and if possible a scoreboard showing 5 players with most deaths descending. Here is my script:
Code:
on join:
if {%player%.deaths} is not set:
set {%player%.deaths} to 0
on death:
if victim is a player:
add 1 to {%player%.deaths}
command /deaths [<offline player>]:
trigger:
if arg 1 is not set:
send "You have {%player%.deaths} deaths." to player
else:
send "%arg 1% has {%arg 1%.deaths} deaths." to player