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

How to disable multiplayer when launching the Minecraft?

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

I'm trying to make my own launcher with my OWN Parental Control feature, and I'm looking on how to disable multiplayer MANUALLY when launching Minecraft (if parent choose to disable it for their child). Is it possible? Because this is help many parents who don't want their child to play multiplayer on Minecraft, but still want their child to play multiplayer on other games. Because when they change their child's Xbox Account Settings, it will disable multiplayer in MOST Xbox Games.

EvanEvan-17 avatar Jul 31 '22 05:07 EvanEvan-17

this option is unavailable on current version.

I'll add this feature on next version.

AlphaBs avatar Aug 02 '22 06:08 AlphaBs

Is this possible? If you can, please make next version immediately. I need it. It is through Java argument?

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

I need this feature, please make it immediately if this is possible, if not possible, then tell me, but IF POSSIBLE, ADD IT NOW! I NEED IT!

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

sorry, I don't have enough time for this project. I think I can start working on it next week.

AlphaBs avatar Aug 04 '22 05:08 AlphaBs

OK, so just tell me how this is possible? I want to start searching, but you can start working on next week, but please give me how does it possible? I want to know. Thank you.

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

decompile latest minecraft using mcp and find argument name like "disableMultiplayer" (i can't remember exact value)

add these argument to Process.StartInfo.Argument

ex)

var proc = await launcher.CreateProcess(~~~);
proc.StartInfo.Argument += " --disableMultiplayer");
proc.Start();

note: disabling multiplayer feature is only available on latest version (1.17, 1.18, 1.19)

AlphaBs avatar Aug 04 '22 15:08 AlphaBs

OK, it is now working! THANK YOU VERY MUCH for your help. And it's look like you no longer need to do something, but if you can add this feature directly, then it's good. You can add it to next version in the next week if you don't have a time in this week.

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