on place:
if {place::%player%} is not set:
set {place::%player%} to 0
add 1 to {place::%player%}
on break:
if {break::%player%} is not set:
set {break::%player%} to 0
add 1 to {break::%player%}
command /topka [<string>]:
trigger:
if arg 1 is "place":
send "&4&lTopka położonych bloków:"
send createTop("place", 5, "&c[INDEX]&7. [PLAYER]: [VALUE]")
else is arg 1 is "break":
send "&5&lTopka zniszczonych bloków:"
send createTop("break", 5, "&d[INDEX]&7. [PLAYER]: [VALUE]")
else:
send "Wpisz /topka <place | break>"