this is my code:
on join:
wait 5 ticks
if player has 1 of iron sword of sharpness 1 named "&aPVP Sword"
cancel event
else:
give player iron sword of sharpness 1 named "&aPVP Sword"
give player 10 of golden apple
give player 2 of steak
give player 32 of arrow
give player 1 of bow
give player 1 of iron helmet of protection 2 and unbreaking 1
give player 1 of iron chestplate of protection 2 and unbreaking 1
give player 1 of iron leggings of protection 2 and unbreaking 1
give player 1 of iron boots of protection 2 and unbreaking 1
on join:
wait 5 ticks
if player has 1 of iron sword of sharpness 1 named "&aPVP Sword"
cancel event
else:
give player iron sword of sharpness 1 named "&aPVP Sword"
give player 10 of golden apple
give player 2 of steak
give player 32 of arrow
give player 1 of bow
give player 1 of iron helmet of protection 2 and unbreaking 1
give player 1 of iron chestplate of protection 2 and unbreaking 1
give player 1 of iron leggings of protection 2 and unbreaking 1
give player 1 of iron boots of protection 2 and unbreaking 1