command /crafttrack [] []: permission: crafttrack.command permission message: &4#### &cNie posiadasz uprawnien. trigger: if arg 1 is "kilof": if arg 2 is set: set {_player} to arg 2 else: set {_player} to player give {_player} diamond pickaxe named "&cKilof CraftTrack" with lore "||&6Wykopany kamien: &c0||&6Wykopany obsydian: &c0" if {_player} is not player: send "&aOtrzymales &2kilof CraftTrack &aod gracza: &2%player%&a." to {_player} else if arg 1 is "miecz": if arg 2 is set: set {_player} to arg 2 else: set {_player} to player give {_player} diamond sword named "&cMiecz CraftTrack" with lore "||&6Zabitych graczy: &c0||&6Zabitych mobow: &c0||&6Zadane obrazenia: &c0" if {_player} is not player: send "&aOtrzymales &2miecz CraftTrack &aod gracza: &2%player%&a." to {_player} on mine of stone: if player's tool is diamond pickaxe: if name of player's tool is "&cKilof CraftTrack": set {_x} to 2nd line of lore of player's tool replace all "&6Wykopany kamien: &c" with "" in {_x} set {_x} to {_x} parsed as number add 1 to {_x} set 2nd line of lore of player's tool to "&6Wykopany kamien: &c%{_x}%" on mine of obsidian: if player's tool is diamond pickaxe: if name of player's tool is "&cKilof CraftTrack": set {_x} to 3nd line of lore of player's tool replace all "&6Wykopany obsydian: &c" with "" in {_x} set {_x} to {_x} parsed as number add 1 to {_x} set 3nd line of lore of player's tool to "&6Wykopany obsydian: &c%{_x}%" on damage: if attacker is player: if attacker's tool is diamond sword: if name of attacker's tool is "&cMiecz CraftTrack": set {_z} to damage set {_x} to 4nd line of lore of attacker's tool replace all "&6Zadane obrazenia: &c" with "" in {_x} set {_x} to {_x} parsed as number set 4nd line of lore of attacker's tool to "&6Zadane obrazenia: &c%{_x}+damage%" on death: if attacker is player: if attacker's tool is diamond sword: if name of attacker's tool is "&cMiecz CraftTrack": if victim is player: set {_x} to 2nd line of lore of attacker's tool replace all "&6Zabitych graczy: &c" with "" in {_x} set {_x} to {_x} parsed as number set 2nd line of lore of attacker's tool to "&6Zabitych graczy: &c%{_x}+1%" else: set {_x} to 3nd line of lore of attacker's tool replace all "&6Zabitych mobow: &c" with "" in {_x} set {_x} to {_x} parsed as number set 3nd line of lore of attacker's tool to "&6Zabitych mobow: &c%{_x}+1%"