-
-
Notifications
You must be signed in to change notification settings - Fork 940
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
kicked on whispering (unsigned_chat) #2992
Comments
I think this is a duplicate of #2874 |
@lkwilson @Moosbee Can you check that the above fixes (https://github.com/PrismarineJS/node-minecraft-protocol/pull/1241/commits) indeed fixed this problem? I believe that the latest npm package of minecraft-protocol (1.44.0) has the above changes, but calling mineflayer's bot.whisper() seems to still be kicking with "lost connection: Received chat packet with missing or invalid signature." being returned from a vanilla 1.20.1 server...? |
Does it work for you on a 1.19.3+ server other than 1.20.1? Also are you whispering a long message or using coloring? And does using .chat(“/whisper …”) work? You can look in node_modules/minecraft-protocol/package.json to verify you’re using 1.44 |
@lkwilson Let me check for those cases, I would be glad to help out. Messaging is literally: bot.whisper(masterPlayer, ...where 'masterPlayer' is my user name, and 'message' is the string "Hi!". |
(There are backticks in the above JavaScript, but of course they got converted to formatting) |
The bot.whisper command now works as expected, but you still have to enable |
@Moosbee excellent, that worked, I hadn't realized that I could pass REVISED: Still not working for me. This is my test script:
|
@rgmarquez try to hardcode the username in bot.whisper, if the username is not exactly right it will fail. Also try using the |
@Moosbee I finally got a chance to try out your suggestions. As for the npm, just for completeness, this is what I get when doing "npm i https://github.com/PrismarineJS/mineflayer":
I'm trying this all under MacOS, Node version v20.6.1, npm version 10.2.0. This is what my package.json looks like:
I did trying to hardcode the bot's whisper statement to "bot.whisper('blammo21', 'I can tell secrets too.')", and verified the spelling of my currently logged-in account was indeed "blammo21". I also re-verified that the bot was being "triggered" to whisper correctly, as the debug console correctly printed the incoming message thusly : "I received a message from blammo21: hi!". Can you tell me if everyone else seems to have bot.whisper() working fine with disableChatSigning: true? If so, I can narrow differences down on my end. Thanks for all your time looking at this so far. |
you can try to use |
Versions
Detailed description of a problem
while using the default connection options(
disableChatSigning
not specified)bot.chat("/tell Moosbee Test")
will kick the bot from the Server.Bot.whisper(username, message);
does exist, but it doesn't work at all, just outputting/tell username message
to the general chat regardless ifdisableChatSigning
istrue
orfalse
The disconnect packet is as follows:
{ reason: '{"translate":"multiplayer.disconnect.unsigned_chat"}' } { size: 54, name: 'kick_disconnect', state: 'play' }
Using
bot.chat("Test")
does work.What did you try yet?
/msg
is the same problem. But the/help
command works.Setting
disableChatSigning
on start totrue
will fix the issue, provided the server you are playing on allows unsigned chat.Did you try any method from the API?
Bot.whisper(username, message);
does exist, but it doesn't work at all, just outputting/tell username message
to the general chatDid you try any example? Any error from those? I couldn't find a whisper/private conversation example
Your current code
The code does work if
disableChatSigning
is set totrue
Expected behavior
The bot whispering me something, it beeing signed and not getting kicked
Additional context
Setting
disableChatSigning
on start totrue
will fix the issue, provided the server you are playing on allows unsigned chat.The text was updated successfully, but these errors were encountered: