mirai/mirai-console/tools/intellij-plugin/resources/fileTemplates/code/Plugin main class Kotlin.kt.ft
Him188 481973d5e6
New Project Wizard for IDEA 221 (#1979)
* NewProjectWizard

* dependencies and validations

* Implement checkers

* Implement project generator

* Add new template RunTerminal.run.xml for Run Configuration

* Set supported IDEA version to 221

* Fix localization

* Fix since-until

* Rearrange files
2022-04-20 17:03:10 +01:00

27 lines
790 B
Plaintext

package $PACKAGE_NAME
import net.mamoe.mirai.console.plugin.jvm.JvmPluginDescription
import net.mamoe.mirai.console.plugin.jvm.KotlinPlugin
import net.mamoe.mirai.utils.info
#set($HAS_DETAILS = ${PLUGIN_AUTHOR} != "" || ${PLUGIN_DEPENDS_ON} != "" || ${PLUGIN_INFO} != "")
object $CLASS_NAME : KotlinPlugin(
JvmPluginDescription(
id = "${PLUGIN_ID}",
#if(${PLUGIN_NAME} != "")name = "${PLUGIN_NAME}",
#end
version = "${PLUGIN_VERSION}",
) #if($HAS_DETAILS){
#end
#if(${PLUGIN_AUTHOR} != "")author("${PLUGIN_AUTHOR}")
#end
#if(${PLUGIN_DEPENDS_ON} != "")dependsOn("${PLUGIN_DEPENDS_ON}")
#end
#if(${PLUGIN_INFO} != "")info("""${PLUGIN_INFO}""")
#end
#if($HAS_DETAILS) }
#end
) {
override fun onEnable() {
logger.info { "Plugin loaded" }
}
}