
on death:
if {inbox.%player%} is 1:
if attacker is a player:
if victim is a player:
add 1 to {killstreak.%attacker%}
set {killstreak.%victim%} to 0
if {killstreak.%attacker%} is equal to 5:
loop all players:
if {inbox.%loop-player%} is 1:
send "&6&l%attacker% &aa un killstreak de &65 &a!" to loop-player
command /boxsign <text>:
permission: box.sk
trigger:
if targeted block is a sign:
if arg 1 is "kit":
set line 2 of targeted block to "&2&l[&aSelection&2&l]"
set line 3 of targeted block to "&b&lKit"
else if arg 1 is "shop":
set line 2 of targeted block to "&2&l[&aAchat&2&l]"
set line 3 of targeted block to "&b&lKit"
on rightclick on sign:
line 3 of clicked block block is "&b&lKit"
if line 2 of clicked block is "&2&l[&aSelection&2&l]":
make player execute command "/meskits"
else if line 2 of targeted block is "&2&l[&aAchat&2&l]":
make player execute command "/kitshop"