#custom joinserver screen

11 messages · Page 1 of 1 (latest)

wise scarab
#

i want to present a custom screen before player joins my server . so how can i modify the join server button to dont make immediate connection and let me present a screen
how to do it the easy way

proven basin
#

You'll probably mixin to wherever players join the server, I know that much. I don't know how screen handling works outside a world though.

wise scarab
proven basin
#

Yes, mixin to before the server connection is sent. You can't just do the button since there's multiple buttons and keyboard inputs that work.

wise scarab
#

i dont know anything about mixins. any way through events or something else

proven basin
#

I doubt it. Mixins aren't too bad to learn though.

#

!!mixin

earnest smeltBOT
#

Mixin is a trait/mixin and bytecode weaving framework for Java using ASM written by Mumfrey, primarily used in Fabric mods for modifying existing game code.

Mixin Wiki: https://github.com/SpongePowered/Mixin/wiki
Javadoc: http://jenkins.liteloader.com/view/Other/job/Mixin/javadoc/index.html
Fabric Wiki tutorial: https://fabricmc.net/wiki/tutorial:mixin_introduction
Cheatsheet: https://github.com/2xsaiko/mixin-cheatsheet/blob/master/README.md

See also:
!!mcdev - An IntelliJ plugin which adds useful helpers and inspections for using mixin
!!spongecord - The Sponge Discord server, with official support for Mixin in the #mixin channel

wise scarab
proven basin
#

Possibly? If that event is cancelable. I don't know if it is and can't check right now. If it is, that's probably the best thing to do, yeah.

wise scarab