mamoe / mirai-console

mirai 的高效率 QQ 机器人控制台
GNU Affero General Public License v3.0
1.19k stars 412 forks source link

把jar放到plugins文件夹mirai没有读取jar #406

Closed andogy closed 3 years ago

andogy commented 3 years ago

问题

我把我自己的jar放到plugins里面,mirai没有读取jar

版本

mirai-console: 2.7.0
mirai-core: 2.7.0

截图

image image

我试过使用mcl指令来添加,但是报错了,无法读取

Him188 commented 3 years ago

是否有 META-INF/services/net.mamoe.mirai.console.plugin.Plugin ?

andogy commented 3 years ago

是否有 META-INF/services/net.mamoe.mirai.console.plugin.Plugin ?

没有,如何解决?

Him188 commented 3 years ago

https://github.com/mamoe/mirai-console/blob/master/docs/Plugins.md#%E9%85%8D%E7%BD%AE%E4%B8%BB%E7%B1%BB%E6%9C%8D%E5%8A%A1

andogy commented 3 years ago

https://github.com/mamoe/mirai-console/blob/master/docs/Plugins.md#%E9%85%8D%E7%BD%AE%E4%B8%BB%E7%B1%BB%E6%9C%8D%E5%8A%A1

我使用了java,看起来那种方式并不适合我,没有显示mirai图标也没有叫我配置 image

Him188 commented 3 years ago

https://github.com/mamoe/mirai-console/blob/master/docs/Plugins.md#%E6%89%8B%E5%8A%A8%E9%85%8D%E7%BD%AE%E4%B8%BB%E7%B1%BB%E6%9C%8D%E5%8A%A1

Him188 commented 3 years ago

建议使用 IDE 插件自动创建项目, 确保 IDE 是 2020.1 及以上版本

andogy commented 3 years ago

建议使用 IDE 插件自动创建项目, 确保 IDE 是 2020.1 及以上版本

是插件构建的,并且ide为2020.1.*

andogy commented 3 years ago

不,还是不行

Karlatemp commented 3 years ago

根据 import net.mamoe.mirai.console.plugins.PluginBase 判断你的项目结构包括依赖都是 1.x 时的格式, 请更新