mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-27 00:30:17 +08:00
481973d5e6
* 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
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!");
|
|
}
|
|
} |