Git Product home page Git Product logo

mirai-console-minecraft-plugin's Introduction

本项目是基于 Mirai Console 编写的插件

用于 ping 服务器状态

戳一戳机器人头像可以获取帮助

可选前置插件mirai-plugin-general-interface用来支持事件

命令

/mc addServer <name> <address> [port]    # 添加服务器,端口默认 25565
/mc deleteServer <name>    # 删除服务器
/mc setAllToImg <value>    # 设置All消息转换为图片功能是否启动
# 设置触发指令
/mc setCommand <name> <command>  

name 可设置如下

  • PING ping服务器
  • LIST 查询列表
  • PING_ALL ping全部服务器

功能展示

戳一戳功能:

直 ping 地址功能:

ping 全部添加的服务器功能:

mirai-console-minecraft-plugin's People

Contributors

doctor-yin avatar limbang avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

mirai-console-minecraft-plugin's Issues

一点建议(

让查询指令也支持一下私聊环境(指 !list 这些)
修改查询指令为 !ping 感觉这样会更符合直觉(
同理 !tps
增加单次查询指令 !ping [port]
增加批量查询 !pingall
个人一点小小看法 不喜欢请直接close这个issue

[Bug] tps查询无法使用

config片段
s2: address: 'main.lxy-unnamed.top' port: 25562 loginInfo: authServerUrl: 'https://authserver.mojang.com/authenticate' sessionServerUrl: 'https://sessionserver.mojang.com' username: xxx password: xxx
已经检查过账号密码是正确的
已经检查过服务器可以正常连接

日志:
2021-07-30 21:56:14 E/top.limbang.mirai-console-minecraft-plugin: Exception in coroutine Plugin top.limbang.mirai-console-minecraft-plugin of top.limbang.mirai-console-minecraft-plugin top.limbang.doctor.client.session.AuthenticationException: ??????...: The server has not found anything matching the request URI at top.limbang.doctor.client.session.YggdrasilMinecraftSessionService.loginYggdrasilWithPassword(YggdrasilMinecraftSessionService.kt:83) at top.limbang.doctor.client.MinecraftClientBuilder.build(MinecraftClientBuilder.kt:74) at top.limbang.mirai.minecraft.service.ServerService.getTPS(ServerService.kt:96) at top.limbang.mirai.minecraft.MiraiConsoleMinecraftPlugin$onEnable$1$4.invokeSuspend(MiraiConsoleMinecraftPlugin.kt:46) at top.limbang.mirai.minecraft.MiraiConsoleMinecraftPlugin$onEnable$1$4.invoke(MiraiConsoleMinecraftPlugin.kt) at net.mamoe.mirai.internal.event.MessageSubscribersInternalKt$startsWithImpl$2.invokeSuspend(messageSubscribersInternal.kt:58) at net.mamoe.mirai.internal.event.MessageSubscribersInternalKt$startsWithImpl$2.invoke(messageSubscribersInternal.kt) at net.mamoe.mirai.internal.event.MessageSubscribersInternalKt$startsWithImpl$2.invoke(messageSubscribersInternal.kt) at net.mamoe.mirai.internal.event.MessageSubscribersInternalKt$content$1.invokeSuspend(messageSubscribersInternal.kt:27) at net.mamoe.mirai.internal.event.MessageSubscribersInternalKt$content$1.invoke(messageSubscribersInternal.kt) at net.mamoe.mirai.internal.event.MessageSubscribersInternalKt$content$1.invoke(messageSubscribersInternal.kt) at net.mamoe.mirai.event.SubscribeMessagesKt__SubscribeMessagesKt$subscribeGroupMessages$$inlined$createBuilder$SubscribeMessagesKt__SubscribeMessagesKt$1$1.invokeSuspend(subscribeMessages.kt:226) at net.mamoe.mirai.event.SubscribeMessagesKt__SubscribeMessagesKt$subscribeGroupMessages$$inlined$createBuilder$SubscribeMessagesKt__SubscribeMessagesKt$1$1.invoke(subscribeMessages.kt) at net.mamoe.mirai.event.SubscribeMessagesKt__SubscribeMessagesKt$subscribeGroupMessages$$inlined$createBuilder$SubscribeMessagesKt__SubscribeMessagesKt$1$1.invoke(subscribeMessages.kt) at net.mamoe.mirai.event.EventChannel$subscribeAlways$1.invokeSuspend(EventChannel.kt:432) at net.mamoe.mirai.event.EventChannel$subscribeAlways$1.invoke(EventChannel.kt) at net.mamoe.mirai.event.EventChannel$subscribeAlways$1.invoke(EventChannel.kt) at net.mamoe.mirai.internal.event.Handler$onEvent$2.invokeSuspend(InternalEventListeners.kt:50) at net.mamoe.mirai.internal.event.Handler$onEvent$2.invoke(InternalEventListeners.kt) at net.mamoe.mirai.internal.event.Handler$onEvent$2.invoke(InternalEventListeners.kt) at kotlinx.coroutines.intrinsics.UndispatchedKt.startUndispatchedOrReturn(Undispatched.kt:89) at kotlinx.coroutines.BuildersKt__Builders_commonKt.withContext(Builders.common.kt:165) at kotlinx.coroutines.BuildersKt.withContext(Unknown Source) at net.mamoe.mirai.internal.event.Handler.onEvent(InternalEventListeners.kt:50) at net.mamoe.mirai.internal.event.InternalEventListenersKt.process(InternalEventListeners.kt:160) at net.mamoe.mirai.internal.event.InternalEventListenersKt.access$process(InternalEventListeners.kt:1) at net.mamoe.mirai.internal.event.InternalEventListenersKt$callAndRemoveIfRequired$2$1.invokeSuspend(InternalEventListeners.kt:126) at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33) at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106) at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:571) at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:750) at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:678) at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:665)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.