Hello,
I'd like to implement a crafting restriction for some items. That means that i want for example non admin players not to able to craft a diamond sword.
How do i implement this? I can't just delete the corresponding recipe, because other players with the permission wouldn't be able to craft it then.
What i think i need is something like an event that fires everytime the CraftingManager finds a crafting recipe, so i can check if the player is allowed to use it or not and cancel it if needed.
The only event i found is the ItemCraftedEvent, but it fires AFTER an item is crafted, and seems not to be cancelable.
Do you have any suggestions on how to do this? I have a feeling that i need to "edit" the CraftingManager class via a coremod, but i hope you guys know another way to do this.
Greeting, Guildejo