Closed Andre601 closed 1 month ago
Yes, that is the correct way to call it, the logger can be obtained with an argument in the Inject constructor:
@Inject
public MyPlugin(Logger logger, @DataDirectory Path dataDirectory, PluginManager pluginManager) {
VelocityLibraryManager<MyPlugin> libraryManager = new VelocityLibraryManager<>(this, logger, dataDirectory, pluginManager);
}
A wiki is planned to be published once the gradle branch is released.
The VelocityLibraryManager seems to be a odd one out of the group for a few reasons, one of them being that you need to define the plugin's main class as part of it...
It would be good if instructions would be present for to make it easier to understand how to properly use it, because from what I understand is this what you're supposed to do?