Open vincss opened 1 month ago
@LucienHH do you think you could help figure that out?
@vincss can you reproduce on a vanilla server ?
Hi, Yes, it is before the minecraft server starts, I make a server that listen for client before to wake a real server : https://github.com/vincss/mcsleepingserverstarter/blob/master/src/sleepingMcJava.ts#L40
Thanks for your investigation.
We checked, client is working in 1.20.6
I'm using the server part of the library and a vanilla client.
Hi, I also tried with the latest version of node-minecraft-protocol 1.50.0 and client in 1.21.1 , but I ended up with the same error. :(
Provide more info. It's working for some people and not others
I would gladly provide more information.
When I start a server with the createServer with the version "minecraft-protocol": "^1.50.0", : https://github.com/vincss/mcsleepingserverstarter/blob/feature/minecraft-protocol_1.50.0/src/sleepingMcJava.ts#L39
DEBUG CreateServer {
'online-mode': true,
motdMsg: { text: 'SleepingServer, waiting for his prince...' },
port: 25565,
maxPlayers: 20,
version: false,
beforePing: [Function: beforePing],
validateChannelProtocol: true,
errorHandler: [Function: errorHandler],
enforceSecureProfile: true
}
In the official client vanilla client in 1.21.1, I get the following error "Failed to verify username" :
Can you tell me which information would help ?
So your problem is not about node Minecraft protocol client but about the server. Is that right?
Yes, that's it :-)
[x] The FAQ doesn't contain a resolution to my issue
Versions
Detailed description of a problem
When I'm trying to connect to the server with a client in version 1.20.6 and the server is using minecraft-protocol 1.49.0, I get the follow error in the client :
Current code
Expected behavior
The connection is accepted, and it doesn't failed to verify the username.
Additional context
When I switch the "oneline-mode" to false:
DEBUG CreateServer { 'online-mode': false, motdMsg: { text: 'SleepingServer, waiting for his prince...' }, port: 25565, maxPlayers: 20, version: false, beforePing: [Function: beforePing], validateChannelProtocol: true, errorHandler: [Function: errorHandler], enforceSecureProfile: false }
The connection is handle but I got an error on the client side :Thanks for your help & devotion and this package.
Have a nice day.