MiraiForum

    • 注册
    • 登录
    • 搜索
    • 热门
    • 最新
    • 未解决
    • 标签
    • 群组
    • 友情链接
    1. 主页
    2. Under-estimate
    3. 帖子
    • 资料
    • 关注 0
    • 粉丝 3
    • 主题 7
    • 帖子 65
    • 最佳 9
    • 有争议的 0
    • 群组 2

    Under-estimate 发布的帖子

    • RE: 开发小白找个插件/有人来逛逛俺的迈恩克拉夫特服务器吗

      @llt12213 目前仍需要输入指令来获取信息,但是可以加关键词触发的功能

      发布在 摸鱼区
      Under-estimate
      Under-estimate
    • RE: 开发小白找个插件/有人来逛逛俺的迈恩克拉夫特服务器吗

      @llt12213 现在已经支持绑定服务器地址到群聊了

      发布在 摸鱼区
      Under-estimate
      Under-estimate
    • RE: 开发小白找个插件/有人来逛逛俺的迈恩克拉夫特服务器吗

      也可以试试咱的https://mirai.mamoe.net/topic/976

      发布在 摸鱼区
      Under-estimate
      Under-estimate
    • RE: 【每日沙雕图】沙雕小别墅

      98c0e468-9a16-4fe5-ad65-cfd67ec7ce8b--7c96c386d6549142.jpg

      发布在 摸鱼区
      Under-estimate
      Under-estimate
    • RE: McMotd - 以图片的形式获取Minecraft服务器信息(支持彩色文字、HTTP API)

      @NNanfeng 感谢反馈,文档已更正

      发布在 插件发布
      Under-estimate
      Under-estimate
    • RE: McMotd - 以图片的形式获取Minecraft服务器信息(支持彩色文字、HTTP API)

      @NNanfeng 具体是什么问题呀

      发布在 插件发布
      Under-estimate
      Under-estimate
    • RE: McMotd - 以图片的形式获取Minecraft服务器信息(支持彩色文字、HTTP API)

      @NNanfeng 已添加群聊绑定服务器功能,请在Releases下载最新版本

      发布在 插件发布
      Under-estimate
      Under-estimate
    • RE: McMotd - 以图片的形式获取Minecraft服务器信息(支持彩色文字、HTTP API)

      @NNanfeng 有什么建议吗

      发布在 插件发布
      Under-estimate
      Under-estimate
    • RE: McMotd - 以图片的形式获取Minecraft服务器信息(支持彩色文字、HTTP API)

      @NNanfeng
      在Ubuntu 20.04.2 LTS上的测试结果表明,确实是没有安装字体的问题。McMotd需要字体来渲染图片,因此系统中没有安装字体时则会出错。以下为在Ubuntu上安装字体的方法:

      1. 将一个中文字体文件(*.ttf或*.ttc)复制到/usr/share/fonts文件夹下。如果你的PC操作系统为Windows,推荐使用C:\Windows\Fonts文件夹下的微软雅黑字体msyh.ttc
      2. 设置字体文件的权限:chmod 644 <你的字体文件>
      发布在 插件发布
      Under-estimate
      Under-estimate
    • RE: McMotd - 以图片的形式获取Minecraft服务器信息(支持彩色文字、HTTP API)

      @NNanfeng 似乎是运行环境中没有安装字体,请提供运行mirai的操作系统信息和java版本信息以便进一步分析

      发布在 插件发布
      Under-estimate
      Under-estimate
    • RE: McMotd - 以图片的形式获取Minecraft服务器信息(支持彩色文字、HTTP API)

      @fffzzl 已修复此类情况,请查看Releases

      发布在 插件发布
      Under-estimate
      Under-estimate
    • RE: McMotd - 以图片的形式获取Minecraft服务器信息(支持彩色文字、HTTP API)

      @nicklly 已添加自定义渲染字体的功能,请在这里查看。

      发布在 插件发布
      Under-estimate
      Under-estimate
    • RE: McMotd - 以图片的形式获取Minecraft服务器信息(支持彩色文字、HTTP API)

      @touming 此问题已修复,请查看

      发布在 插件发布
      Under-estimate
      Under-estimate
    • McMotd - 以图片的形式获取Minecraft服务器信息(支持彩色文字、HTTP API)

      Github mirai maintain download

      获取MC服务器信息并以图片形式展示服务器图标、标题、延迟、玩家数量等信息。如下图所示:
      8aebc9ef-cac3-4e58-b29e-374e635af103-image.png

      • 目前仅支持Java版服务器
      • 支持绘制玩家数量历史记录图表
      • 支持HTTP API
      • 支持IPv6服务器

      详细命令用法见README。

      发布在 插件发布
      Under-estimate
      Under-estimate
    • RE: Baidu Kotlin SDK 目前实现了Oauth百度网盘

      好耶(自己写了几天没写出来

      发布在 其他项目发布
      Under-estimate
      Under-estimate
    • RE: 为子项目配置mirai-core依赖时出现的问题

      将子项目中

      plugins {
          id 'idea'
          id 'java'
      }
       
      apply plugin: 'org.jetbrains.kotlin.jvm'
      apply plugin: 'com.github.johnrengelman.shadow'
      

      改为

      plugins {
          id 'org.jetbrains.kotlin.jvm'
          id 'com.github.johnrengelman.shadow'
          id 'idea'
          id 'java'
      }
      

      更改之后没有作用。

      尝试使用分离API和实现的方式,成功解决问题。

      发布在 开发交流
      Under-estimate
      Under-estimate
    • 为子项目配置mirai-core依赖时出现的问题

      项目结构如图所示:
      7bd533c0-939f-4a74-999c-e5afbd8cbcfe-image.png
      InformationPanel为主项目,依赖于子项目Dependency,两个项目都依赖于mirai-core
      主项目的build.gradle配置:

      plugins {
          id 'org.jetbrains.kotlin.jvm' version '1.4.32'
          id 'com.github.johnrengelman.shadow' version '5.2.0'
      }
      
      group = 'InformationPanel'
      version = '1.0.0'
      
      repositories {
          maven { url 'https://dl.bintray.com/kotlin/kotlin-eap' }
          maven { url 'https://mirrors.huaweicloud.com/repository/maven' }
          mavenCentral()
          jcenter()
      }
      
      dependencies {
          api('net.mamoe:mirai-core:+')
          implementation 'com.alibaba:fastjson:+'
          implementation 'com.github.oshi:oshi-core:+'
          implementation 'org.reflections:reflections:+'
      
          implementation project(':Dependency')
      }
      

      子项目的build.gradle配置:

      plugins {
          id 'idea'
          id 'java'
      }
      
      //这两个插件不能写在plugins中,否则gradle import会报错
      
      apply plugin: 'org.jetbrains.kotlin.jvm'
      apply plugin: 'com.github.johnrengelman.shadow'
      
      repositories {
          maven { url 'https://maven.aliyun.com/nexus/content/groups/public/' }
          maven { url 'https://mirrors.huaweicloud.com/repository/maven' }
          mavenCentral()
      }
      
      dependencies {
          api('net.mamoe:mirai-core:+')
          implementation 'com.alibaba:fastjson:1.2.75'
          implementation 'org.slf4j:slf4j-simple:2.0.0-alpha1'
          implementation 'org.reflections:reflections:0.9.12'
          testImplementation('org.junit.jupiter:junit-jupiter:5.5.2')
      }
      
      

      按照如上的配置,gradle import之后主项目的依赖配置正常,但子项目的classpath中缺少mirai-core依赖项。IntelliJ IDEA提供的修复选项Add library 'Gradle: ...' to classpath执行后也没有效果。
      3406f33f-4904-4262-b360-15470300c16c-image.png
      尝试清除IntelliJ IDEA的缓存后重新导入无效,无视错误直接编译会编译失败,提示子项目中找不到mirai中各种类的定义。
      若将子项目作为单独的项目打开,将build.gradle中的kotlin.jvm以及johnrengelman.shadow插件写在plugin中并带上版本号,则依赖配置可以正常工作。
      考虑到mirai配置项目依赖的文档中提到:

      注意,必须添加 Kotlin 插件才能正确获取 mirai 软件包。

      可能是因为子项目中两个插件未写在plugin中,但若将其写在plugin中则会在gradle import时报错:

      Error resolving plugin [id: 'org.jetbrains.kotlin.jvm', version: '1.4.32']
      > Plugin request for plugin already on the classpath must not include a version
      

      附加信息
      IntelliJ IDEA 版本 2020.1 Ultimate,已安装Mirai Console插件版本 2.6.1
      mirai-core 版本(主项目) 2.7-M1-dev-1

      几个月之前这样的配置是可以正常工作的,今天重新打开这个项目时发现出现了此问题

      发布在 开发交流
      Under-estimate
      Under-estimate
    • PermitteeId中g类型的用法是什么

      PermitteeId.kt中g*的注释写道:

      表示任何群对象. (不是指群成员, 而是指这个 '群')
      

      所以说g12345678指的是群12345678中的所有消息还是...?

      g12345678和m12345678.*是一样的吗?:thinking_face:

      发布在 开发交流
      Under-estimate
      Under-estimate
    • RE: 发帖·互赞·刷声望

      我也来了:blush:

      发布在 摸鱼区
      Under-estimate
      Under-estimate
    • RE: 【灌水专用贴】摸鱼大楼

      mirai要支持文件操作了,好耶

      发布在 摸鱼区
      Under-estimate
      Under-estimate
    • 1
    • 2
    • 3
    • 4
    • 3 / 4