I have this code to announce when a player reaches a killstreak of 5, 10, 15 ect but it broadcasts every 1 kill. Its not the most efficienct code, but how can I fix it?
```on join:
if {streak::%player's uuid%} is not set:
set {streak::%player's uuid%} to 0
on death:
if attacker is a player:
if victim is a player:
if {streak::%attacker's uuid%} = {killstreak::%attacker's uuid%} / 5:
add 1 to {killstreak::%attacker's uuid%}
set {killstreak::%victim's uuid%} to 0
add 0.2 to {streak::%attacker's uuid%}
set {streak::%victim's uuid%} to 0
broadcast "&f%attacker% has reached a streak of %{killstreak::%attacker's uuid%}%"
else:
add 1 to {killstreak::%attacker's uuid%}
set {killstreak::%victim's uuid%} to 0
add 0.2 to {streak::%attacker's uuid%}
set {streak::%victim's uuid%} to 0
on death:
if attacker is a player:
if victim is a player:
if attacker has permission "killtokens.double":
give attacker 2 of red dye named "&4&lKill token"
else:
give attacker 1 of red dye named "&4&lKill token"
on join:
if {killstreak::%player's uuid%} is not set:
set {killstreak::%player's uuid%} to 0```