on join: if {stone::%player%} is not set: set {stone::%player%} to 0 if {ores::%player%} is not set: set {ores::%player%} to 0 if {kills::%player%} is not set: set {kills::%player%} to 0 command /stattrak []: trigger: if arg 1 is not set: send "&8* &cPoprawne uzycie: /stattrak " if arg 1 is "kilof": if player is holding pickaxe: send "&8* &7Utworzyles kilof &b[StatTrak]&7!" set name of player's tool to "&b[StatTrak] &eKilof" set lore of player's tool to "&8* &cO uzytkowniku:||&8* &7Wlasciciel: &e%player%||&8* &7Wykopany kamien: &e%{stone::%player%}%||&8* &7Wykopane rudy: &e%{ores::%player%}%" if arg 1 is "miecz": if player is holding sword: send "&8* &7Utworzyles miecz &b[StatTrak]&7!!" set name of player's tool to "&b[StatTrak] &eMiecz" set lore of player's tool to "&8* &cO uzytkowniku:||&8* &7Wlasciciel: &e%player%||&8* &7Zabojstwa: &e%{kills::%player%}%" on break of stone: if name of player's tool is "&b[StatTrak] &eKilof" or "&0[StatTrak*] &eKilof" or "&a[StatTrak*] &eKilof": add 0 to {stone::%player%} set lore of player's tool to "&8* &cO uzytkowniku:||&8* &7Wlasciciel: &e%player%||&8* &7Wykopany kamien: &e%{stone::%player%}%||&8* &7Wykopane rudy: &e%{ores::%player%}%" if {stone::%player%} >= 1000: if name of player's tool is "&b[StatTrak] &eKilof": set name of player's tool to "&0[StatTrak*] &eKilof" if {stone::%player%} < 1000: set name of player's tool to "&b[StatTrak] &eKilof" else: stop on mine of any ore: if name of player's tool is "&b[StatTrak] &eKilof" or "&0[StatTrak*] &eKilof" or "&a[StatTrak*] &eKilof": add 1 to {ores::%player%} set lore of player's tool to "&8* &cO uzytkowniku:||&8* &7Wlasciciel: &e%player%||&8* &7Wykopany kamien: &e%{stone::%player%}%||&8* &7Wykopane rudy: &e%{ores::%player%}%" if {ores::%player%} >= 1000: if name of player's tool is "&b[StatTrak] &eKilof": set name of player's tool to "&a[StatTrak*] &eKilof" if {ores::%player%} < 1000: set name of player's tool to "&b[StatTrak] &eKilof" on death: if victim is a player: if attacker is a player: if name of attacker's tool is "&b[StatTrak] &eMiecz" or "&4[StatTrak*] &eMiecz": add 1 to {kills::%attacker%} set lore of attacker's tool to "&8* &cO uzytkowniku:||&8* &7Wlasciciel: &e%attacker%||&8* &7Zabojstwa: &e%{kills::%attacker%}%||&8* &7Ostatnia ofiara: &e%victim%" if {kills::%attacker%} >= 100: if name of attacker's tool is "&b[StatTrak] &eMiecz": set name of attacker's tool to "&4[StatTrak*] &eMiecz" if {kills::%attacker%} < 100: set name of attacker's tool to "&b[StatTrak] &eMiecz" else: stop