on pickup:
if player's x-location is between 0 and 0:
if player's y-location is between 0 and 0:
if player's z-location is between 0 and 0:
cancel event
1.
on drop:
if event-item is a diamond:
cancel event
2.
send json of "Wiadomosc" run "/komenda" to player
3.
on death:
if victim is a zombie:
if name of victim is "Robot":
clear drops
broadcast "Robot został zabity!"
on death:
if victim is a player:
if attacker is a player:
send "&c%victim% &7zostal zabity przez &c%attacker%&7!" to all players in event-world
add 1 to {kills::%attacker%}
add 1 to {deaths::%victim%}
on death of player:
loop drops:
chance of 50%:
add loop-value to {drops::%victim%::*}
clear drops
on respawn:
wait a second
add {drops::%player%::*} to player
clear {drops::%player%::*}