The skript has no errors but it doesnt add the lore to the item. Also if possible can you make it add to the lore and not just set it into one enchant
Code:
command hi:
permission: core.admin
trigger:
give player 1 paper named "&5&lEnchanted Paper &7[Divine]"
on inventory click:
if cursor slot of player is paper:
if name of cursor slot of player is "&5&lEnchanted Paper &7[Divine]":
if slot item is stone sword:
set lore of event-item to "&b&lDivine"
send "&aSuccess!" to the player
set cursor slot of player to air
else:
send "&cError! &7The item you are trying to enchant isn't a sword!"
on damage:
if lore of attacker's tool contains "&b&lDivine":
command "smite %victim%"
damage attacker by 2 hearts