on armor change: if player is wearing all leather armor: if player is wearing a leather helmet with lore "t": if player is wearing a leather chestplate with lore "t": if player is wearing a leather leggings with lore "t": if player is wearing a leather boots with lore "t": set {obrona.%player%} to 10 set {leatherArmor::%player%} to true if {obrona.%player%} > 9: set player's max health to 15 apply potion of speed 2 to player for 999999 seconds else if player is not wearing all leather armor: if {leatherArmor::%player%} is true: remove 10 from {obrona.%player%} set player's max health to 10 remove speed from player set {leatherArmor::%player%} to false