mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-11 11:00:15 +08:00
41d0c16ad1
* Add project wizard * Add OptionsStep * Template application fundamentals * Extract BuildSystemType from BuildSystemStep to top-level * Complete templates * Fix build * Fix build * Support Java and Groovy, fix strings in Kotlin templates * Add template for gradle.properties * Disable `depends on` field * Fix Java template * Fix build * Update tools/compiler-annotations/src/CheckerConstants.kt Co-authored-by: Karlatemp <karlatemp@vip.qq.com> * Update tools/intellij-plugin/src/creator/steps/ValidationUtil.kt Co-authored-by: Karlatemp <karlatemp@vip.qq.com> Co-authored-by: Karlatemp <karlatemp@vip.qq.com>
17 lines
505 B
Plaintext
17 lines
505 B
Plaintext
package $PACKAGE_NAME;
|
|
|
|
import net.mamoe.mirai.console.plugin.jvm.JavaPlugin;
|
|
import net.mamoe.mirai.console.plugin.jvm.JvmPluginDescription;
|
|
|
|
public final class ${CLASS_NAME} extends JavaPlugin {
|
|
public static final ${CLASS_NAME} INSTANCE = new ${CLASS_NAME}();
|
|
|
|
private ${CLASS_NAME}() {
|
|
super(JvmPluginDescription.loadFromResource("plugin.yml", ${CLASS_NAME}.class.getClassLoader()));
|
|
}
|
|
|
|
@Override
|
|
public void onEnable() {
|
|
getLogger().info("Plugin loaded!");
|
|
}
|
|
} |