Jump to content

Guildejo

Members
  • Posts

    3
  • Joined

  • Last visited

Everything posted by Guildejo

  1. First of all, thank you for your reply, but that sounds like a very dirty way of doing this. The ideal result for me would be no crafting result showing up in the craftingtable, if the player is not allowed to craft the item. Is there any way of doing this without a coremod?
  2. 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
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.