CmlLib.Core icon indicating copy to clipboard operation
CmlLib.Core copied to clipboard

How to specify user's private key and public key for Chat Signing and how to handle banned users so they can't play multiplayer when they launch Minecraft with my launcher

Open EvanEvan-17 opened this issue 3 years ago • 9 comments

How to specify user's private key and public key for Chat Signing? Is this process automatically or do I have to add some code? And how to disable multiplayer for banned users? Is this process also automatically or do I have to add some code for this? Please answer me so my launcher can comply with Minecraft's current rules, thank you.

EvanEvan-17 avatar Aug 08 '22 08:08 EvanEvan-17

you don't need to do anything. disabling multiplay, disabling chat, blocked user, everything is handled by minecraft itself.

AlphaBs avatar Aug 08 '22 08:08 AlphaBs

How the process? What I know is in the Minecraft no online check is performed, so I am confused they are all automatically or not. Is the process for specifying private key or public key is automatically as well?

EvanEvan-17 avatar Aug 08 '22 09:08 EvanEvan-17

Dude everything is handled by Mojang INTERNALLY it has nothing todo with the client. also these new rules are garbage anyway so

M1XT3NZ avatar Aug 08 '22 11:08 M1XT3NZ

Yes, I understand that some people don't like it, but you HAVE to follow it to play Minecraft. Your only option is follow it or stop playing it.

EvanEvan-17 avatar Aug 08 '22 11:08 EvanEvan-17

Minecraft do checks user's access token. It makes 3 requests using user's access token:

  1. /player/attributes request on startup to check if the user is allowed to do chat, join to multiplay server, join to multiplay realms and send telemetry. also set 'profanityFilterPreferences'.

  2. /privacy/blocklist When the minecraft client receives an chatting message, it requests here to check if the message is from blocked user.

  3. /player/certificates When the minecraft connects to the online server, it request here to get chatting certificates.

I decompiled Minecraft 1.19 using MCP and checked it by myself.

AlphaBs avatar Aug 09 '22 10:08 AlphaBs

Thank you! How to decompile Minecraft using MCP?

EvanEvan-17 avatar Aug 09 '22 10:08 EvanEvan-17

I used MCP-Reborn

AlphaBs avatar Aug 09 '22 10:08 AlphaBs

When I decode it using MCP, may I use the source code to make my own published client?

EvanEvan-17 avatar Aug 09 '22 11:08 EvanEvan-17

I don't know well about license

maybe you can't publish any code from mcp.

AlphaBs avatar Aug 11 '22 02:08 AlphaBs