Autogenerating KotlinPlugin class
Instance of this class could be generated automaticly by GenRef with task kspKotlin and could be found by path
build\generated\ksp\main\kotlin\{GROUP}\{YOUR_PLUGIN_NAME}Plugin.kt
You can access to it using global variable with path
{GROUP}.{YOUR_PLUGIN_NAME}.plugin
Also will be generated main file:
@Plugin
fun KotlinPlugin.start() {
}
@OnDisable
fun KotlinPlugin.stop() {
}Use function with annotation @Plugin to execute your code on plugin start, and function with annotation @OnDisable to execute your code on plugin stop.
Last updated