<dependency>
<groupId>cn.chengzhiya</groupId>
<artifactId>mhdf-bot</artifactId>
<version>VERSION</version>
<scope>provided</scope>
</dependency>
name: helloworld # 插件名称
version: 1.0.0 # 插件版本
main: cn.chengzhiya.helloworld.Main # 插件主类
authoendrs: [ ChengZhiYa ] # 插件作者
package cn.chengzhiya.helloworld;
import cn.chengzhiya.mhdfbot.api.plugin.JavaPlugin;
public final class Main extends JavaPlugin {
public static Main instance;
@Override
public void onEnable() {
// 插件启动时执行的代码
instance = this;
getLogger().info("hello World!");
}
@Override
public void onDisable() {
// 插件卸载时执行的代码
instance = null;
getLogger().info("goodbye World!");
}
}