Compatibility
Minecraft: Java Edition
Platforms
Supported environments
Links
Creators
Details
What does it do?
This mod allows you to write messages starting or ending with spaces and containing consecutive spaces, this includes messages written with /msg
.
This is not possible in Vanilla, because the client trimms consecutive spaces and removes spaces at the beginning and end of the message, before sending the message to the server.
Removing this functionality however also means that consecutive spaces in a command may cause it to fail. Lucally you can just not use consecutive spaces in for example an execute command and you'll be fine.
Again, a message written with /msg
will still work like expected with consecutive spaces.
How does the mod prevent trimming?
The mod does this by using a mixin to force the public String normalize(String chatText);
method in net.minecraft.client.gui.screen.ChatScreen
to allways return what was passed to it as chatText.