Proszę.
on player change armor:
if lore of past event-item contains "&7Element ubioru górnika.":
remove haste from player
wait 1 tick
lore of player's helmet contains "&7Element ubioru górnika."
lore of player's chestplate contains "&7Element ubioru górnika."
lore of player's leggings contains "&7Element ubioru górnika."
lore of player's boots contains "&7Element ubioru górnika."
apply potion of haste 2 to player for 999 days
command /minerarmor:
permission: permisja.minearmor
trigger:
set {_a::*} to leather helmet, leather chestplate, leather leggings and leather boots
set {_c::*} to white, light aqua, aqua and blue
set {_n::*} to "&aHełm Górnika", "&aPłaszcz Górnika", "&aSpodnie Górnika" and "&aButy Górnika"
set {_l::*} to "&bGdy posiadasz Cala zbroje gornika", "&eOtrzymujesz efekt haste 2" and "&aGdy masz ja ubrana na sobie"
loop {_a::*}:
set {_i} to loop-value
dye {_i} {_c::%loop-index%}
set name of {_i} to {_n::%loop-index%}
loop {_l::*}:
set line (loop-index parsed as integer) of lore of {_i} to loop-value-2
give {_i} to player