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

Change client brand

Open E4zily opened this issue 3 years ago • 5 comments

Is your feature request related to a problem? Please describe. no

Describe the solution you'd like I would love to be able to change the client brand, because some plugins can get your client brand and it would be pretty nice if i could set the brand to something like "Cml Client": image

Describe alternatives you've considered modifying the version to display a client brand you want

Additional context none

E4zily avatar Feb 05 '22 19:02 E4zily

This cannot be done with launcher. To change client brand, you should modify game client code. CmlLib.Core does not modify any part of client files.

Use these mods:

forge mod: https://www.curseforge.com/minecraft/mc-mods/brandpacket

fabric mod: https://www.curseforge.com/minecraft/mc-mods/branding

you can also modify vanilla client file(versions/<version name>/<version name>.jar) by replacing .class file that set client brand value.

AlphaBs avatar Feb 06 '22 04:02 AlphaBs

if i try to replace .class file, something replaces the class with the original one, so nothing changes.

E4zily avatar Feb 06 '22 12:02 E4zily

also i think you do not quite get it, i talked about client brand packets that the client sends to the server.

E4zily avatar Feb 06 '22 12:02 E4zily

**Czy Twoja prośba o funkcję jest związana z problemem? Proszę opisz. ** nie

Opisz rozwiązanie, które chciałbyś , aby móc zmienić markę klienta, ponieważ niektóre wtyczki mogą uzyskać markę klienta i byłoby całkiem miło, gdybym mógł ustawić markę na coś takiego jak "Klient Cml": obraz

Opisz alternatywy, które rozważałeś, modyfikując wersję, aby wyświetlić wybraną markę klienta

Dodatkowy kontekst brak

ty tutaj robisz launcher, nie clienta... lmao

PolsatGraniePL avatar Jul 24 '22 18:07 PolsatGraniePL

sorry for my late reply

but this can be done in launcher. you should modify client. to prevent replacing the class, remove "downloads" property in version json file.

https://github.com/Cmllib/CmlLib.Core/wiki/FAQ#launch-custom-game-client

AlphaBs avatar Jul 29 '22 02:07 AlphaBs