I can't get this function to work where i have 2 values
Code:
funktion vagtarmor(kit: string and lore: string):
if {_kit} is "vagt":
add 1 Gold helmet of protection 5 and unbreaking 3 named "&2&lVAGT &f&l» HELMET" with lore "&9&lKøbt af &c&l%{_lore}", "&f&l%now%" to player's inventory
add 1 Iron chestplate of protection 5 and unbreaking 3 named "&2&lVAGT &f&l» CHESTPLATE" with lore "&9&lKøbt af &c&l%{_lore}", "&f&l%now%" to player's inventory
add 1 Iron leggings of protection 5 and unbreaking 3 named "&2&lVAGT &f&l» LEGGINGS" with lore "&9&lKøbt af &c&l%{_lore}", "&f&l%now%" to player's inventory
add 1 Diamond boots of protection 5 and unbreaking 3 named "&2&lVAGT &f&l» BOOTS" with lore "&9&lKøbt af &c&l%{_lore}", "&f&l%now%" to player's inventory
add 1 Diamond sword of sharpness 4 and unbreaking 3 named "&2&lVAGT &f&l» SVÆRD" with lore "&9&lKøbt af &c&l%{_lore}", "&f&l%now%" to player's inventory
add 1 stick of knockback 3 named "&2&lVAGT &f&l» STICK" with lore "&9&lKøbt af &c&l%{_lore}", "&f&l%now%" to player's inventory
add 1 bow of power 5 and unbreaking 3 and infinity 1 named "&2&lVAGT &f&l» BOW" with lore "&9&lKøbt af &c&l%{_lore}", "&f&l%now%" to player's inventory
add 1 fishing rod of unbreaking 3 named "&2&lVAGT &f&l» ROD" with lore "&9&lKøbt af &c&l%{_lore}", "&f&l%now%" to player's inventory
add 1 arrow named "&7&lPil" to player's inventory
add 64 cooked porkchop to player's inventory