The problem with onCreated is that its run twice. Both on server and client.
I have some code where I random choose an enchantment and I can see that it runs it twice.
It gives me a problem because I want to take levels from the player when the item is crafted.