CustomCrafting
CustomCrafting copied to clipboard
Connection to my plugin
The Problem
I wanna use CC in my plugin, so can I open elite workbench or advanced workbench using your plugin like a dependency or anything like this?
I saw same theme, but it was a several months ago I think, and I decided that something may change.
Solution
Maybe some command for this or method like player.getGuiHandler.open..... or perhaps a more complex way.
Alternatives
Additional Context
Submit issue
- [X] searched for and ensured there isn't already an open issue regarding this,
- [X] are running the latest version of your server software (Spigot, Paper, etc.), and plugins (WolfyUtilities, CustomCrafting).
Since Elite Crafting Tables require a bit more data to function properly you need to set the data first and then open it.
Similar to the interaction event listener:
https://github.com/WolfyScript/CustomCrafting/blob/2a7257dd31396111381815be21153304d268ea38/src/main/java/me/wolfyscript/customcrafting/listeners/EliteWorkbenchListener.java#L54-L59
Of course you can ignore all the event related code like event.setCancelled(true).
Things like the CustomItem needs to be fetched from the Registry for example.
You can get the api via CustomCrafting.inst().getAPI().