Code Monkey home page Code Monkey logo

Comments (17)

hhhfsj avatar hhhfsj commented on June 8, 2024

获取上图中的“模组服1-RLCraft”时不会发生该问题,服务端为Sponge forge

from mirai-console-mcsm-plugin.

limbang avatar limbang commented on June 8, 2024

试试在服务器发送 list 是否有返回。如果没返回它的逻辑就是靠返回判断服务器是否假死。要不给这个功能加个开关?

from mirai-console-mcsm-plugin.

limbang avatar limbang commented on June 8, 2024

这个功能主要是假死的时候。群员可以自己启动。 如果其他如人乱发 可以加黑名单。他发的指令就没用了

from mirai-console-mcsm-plugin.

hhhfsj avatar hhhfsj commented on June 8, 2024

image
是有的,我觉得开关可以有

from mirai-console-mcsm-plugin.

hhhfsj avatar hhhfsj commented on June 8, 2024

或者给检测返回加个等待时间,检测等待时间段内的

from mirai-console-mcsm-plugin.

limbang avatar limbang commented on June 8, 2024

有等待时间的。默认是1秒 你先用这个改成3秒的试试有没有用吧
mirai-console-mcsm-plugin-1.0.10.mirai2.jar.zip

from mirai-console-mcsm-plugin.

hhhfsj avatar hhhfsj commented on June 8, 2024

不行,应该是关键字没抓到?

from mirai-console-mcsm-plugin.

hhhfsj avatar hhhfsj commented on June 8, 2024

我看后台是正确输出了人数信息

from mirai-console-mcsm-plugin.

limbang avatar limbang commented on June 8, 2024

配置文件发我邮箱 [email protected] 我有空的时候调试看看哪的问题 之后你在改下 key

from mirai-console-mcsm-plugin.

limbang avatar limbang commented on June 8, 2024

我尝试获取了下 /mcsm cmd mod2 list 命令获取到的日志是这样的,里面缺少了通道 [minecraft/DedicatedServer]

[22:53:19] [Server thread/INFO]: There are 0/50 players online:
[22:53:19] [Server thread/INFO]:

/mcsm cmd lts list

[23:00:21] [Server thread/INFO] [minecraft/DedicatedServer]: There are 4/50 players online:
[23:00:21] [Server thread/INFO] [minecraft/DedicatedServer]: Hookfang, hengxing, stardie, XUQIZXS

image

看了下 你服务器比我快1秒 导致的判断时间

from mirai-console-mcsm-plugin.

limbang avatar limbang commented on June 8, 2024

mirai-console-mcsm-plugin-1.0.10.mirai2.jar.zip
试试这个版本。我把获取时间改到发送之前了

from mirai-console-mcsm-plugin.

hhhfsj avatar hhhfsj commented on June 8, 2024

判断关键字”There are“ ”players online“会不会更好

我看了下API文档,发送命令是有返回执行时的时间戳的,延迟可能得以那个为依据?

from mirai-console-mcsm-plugin.

limbang avatar limbang commented on June 8, 2024

mod2 是什么端? 我插件参照 forge 写的
image
日志 有 时间 级别 通道 消息

时间戳可以。需要改一些东西。有空优化下 你关掉外网访问把。

from mirai-console-mcsm-plugin.

hhhfsj avatar hhhfsj commented on June 8, 2024

1.10.2的forge

from mirai-console-mcsm-plugin.

limbang avatar limbang commented on June 8, 2024

判断关键字”There are“ ”players online“会不会更好 这样就没法获取下面的名字了
mirai-console-mcsm-plugin-1.0.10.mirai2.jar.zip
这是改过的版本 你试试能不能用吧

from mirai-console-mcsm-plugin.

hhhfsj avatar hhhfsj commented on June 8, 2024

image
image
这回直接无响应了

from mirai-console-mcsm-plugin.

limbang avatar limbang commented on June 8, 2024

看看你守护进程的id对不对。昨天你发我的配置文件。守护进程不对

from mirai-console-mcsm-plugin.

Related Issues (5)

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.