MCCTeam / Minecraft-Console-Client

Lightweight console for Minecraft chat and automated scripts
https://mccteam.github.io
Other
1.67k stars 402 forks source link

[BUG] Crash on input command #2663

Open RainC7 opened 10 months ago

RainC7 commented 10 months ago

Prerequisites

Minecraft Version

1.20.2

Console Client Version

GitHub build 245, built on 2024-01-30 from commit 1e60b61

Expected Behavior

The script executes normally and receives information feedback from the server.

Actual Behavior

MCC prompts the command to be sent, but the actual command is not sent.

Steps to Reproduce the bug

  1. Start MCC
  2. Script auto-execution
  3. MCC lost connection

Attach screenshot here (If applicable)

No response

Anythings that could help diagnosing the bug

[MCC] 该版本受到支持
正在登录...
[MCC] 服务器正处于离线模式。
[MCC] 已成功加入服务器。
输入 '/quit' 离开服务器。
[DEBUG] Receive JoinGame
[DEBUG] CanSendMessage = True
▌[+] xxxxxx
[DEBUG] Receive ChatUuid = Empty
[DEBUG] Receive DeclareCommands
[DEBUG] CanSendMessage = True
[DEBUG] Receive DeclareCommands
[DEBUG] CanSendMessage = True
[MCC] [ScriptScheduler] 登录 / 运行中的操作:script auto.txt
[DEBUG] chat command = l xxxxxx▌
[MCC] [脚本] send /l xxxxxx▌
登陆成功, 祝旅途顺利.
[DEBUG] chat command = home new
[MCC] [脚本] send /home new
[DEBUG] chat command = home new
[DEBUG] chat command = signin click
[MCC] [脚本] send /signin click
[DEBUG] chat command = home new
[MCC] 失去连接。

The script didn't work at all.

Minecraft Console Client v1.20.2 - for MC 1.4.6 to 1.20.2 - Github.com/MCCTeam
GitHub build 245, built on 2024-01-30 from commit 1e60b61
[MCC] [ScriptScheduler] 已加载任务:
首次登录时触发: False
 登录时触发: True
 指定时刻触发: False
 指定时间间隔触发: False
 时刻触发配置: 14:00:00
 间隔触发配置: 48
 动作: script auto.txt

auto.txt

wait 2
send /l xxxxxx
wait 40
send /home new
wait 80
send /signin click
wait 60

Device

VPS

Operating System

Linux

Server Address (If applicable)

No response

RainC7 commented 10 months ago

After testing, in 1.20.2, entering any command will cause a crash

milutinke commented 9 months ago

I can no reproduce this. Provide the IP and the Server Software name.

RainC7 commented 9 months ago

Velocity + Paper 1.20.4 with ViaVersion plugin The server IP has a whitelist and I cannot disclose it From Server Admin:

ccc617692dc1bdcd9ff87591f69fe4f2
milutinke commented 9 months ago

Velocity + Paper 1.20.4 with ViaVersion plugin The server IP has a whitelist and I cannot disclose it From Server Admin: ccc617692dc1bdcd9ff87591f69fe4f2

Add the -Dvelocity.packet-decode-logging=true to your server start command, so we can see which packet is in question, and attach the screenshot of the log.