It works. The mistake that I made in the first place, is that I didn't know what player instance needs to revive its capabilities. The method is called after the new player is created and so the old player needs to have the capabilities revived and not the new one. It makes a lot of sense now that I understand it.
You need to actually get the Item instance form the registry (by calling #get).
Also, DON'T SHARE VANILLA CODE! You do not have the rights to share it, and we can all look it up for ourselves.
1
point
Important Information
By using this site, you agree to our Terms of Use.