RecipeManager Plugin

I’ve been working with a Spigot server but I plan to move it over to Sponge as soon as I can, so I’m only using plugins I see on this List.


RecipeManager plugin is one that I’ve downloaded to restrict the crafting of certain items. However, I have no idea how to disable recipes and I’ve searched everywhere can anyone at all help me?

Thanks in advance. (Sorry if this was not the place to post this, I just ran out of other places :frowning: )

Your best bet is to contact the author (maybe there is some documentation for it floating around/?)

http://dev.bukkit.org/bukkit-plugins/recipemanager/forum/resources/72150-can-i-disable-recipes-with-this/?post=2

4 Likes

Sorry for the late reply here, been dealing with real life stuff this weekend. I’ll copy what I said in the private message on BukkitDev for visibility. In the future, creating a comment on there is probably the quickest way to get my attention, but you can always message me here or on BukkitDev, or even create a ticket on BukkitDev or github.

Start by grabbing the current recipes using /rmextract

Search for the recipe you want to restrict (in the .txt file that gets created). I’ll use gold ingots as an example.

If you wanted to just disable the recipe, you could use @remove or @restrict (same as remove, but tells players the recipe is disabled):

craft
@remove
gold_nugget:0 + gold_nugget:0 + gold_nugget:0
gold_nugget:0 + gold_nugget:0 + gold_nugget:0
gold_nugget:0 + gold_nugget:0 + gold_nugget:0
= gold_ingot:0:1

Now, if you want only certain players to use an already created recipe, you can use @override along with a flag such as @permission:

craft
@override
gold_nugget:0 + gold_nugget:0 + gold_nugget:0
gold_nugget:0 + gold_nugget:0 + gold_nugget:0
gold_nugget:0 + gold_nugget:0 + gold_nugget:0
= gold_ingot:0:1
@permission ranks.vip // replace with whatever permission node you want that is required for this recipe

You can find out more about each flag in the “recipe flags.html” file created when you first run the plugin.

Let me know if you have any other questions or any issues with setting this up.

Also note that I haven’t even started planning the porting of RecipeManager. I’ll probably create a thread on here at some point once I do start though and if there’s anybody who wants to help out with porting, has ideas for what RecipeManager should include that it doesn’t now, better ways to do things, or even helping out with documentation, let me know. For now, I’ve been focusing on making the current version as bug free as possible and familiarizing myself with the code base, which takes up most of my time.

3 Likes