chatfix

chatfix

Mod

Fixes most issues that trigger upon sending a message in chat.

Server Game MechanicsOptimizationSocialUtility

105 downloads
0 followers
Follow Save

chatfix

Fixes most issues that trigger upon sending a message in chat.

If you need this mod for other versions, you may ask here, might just make it

REASON FOR MAKING THIS

I encountered an issue: whenever someone (not connected to my home network) joined my publicly hosted LAN servers with mods like e4mc or programs like playit, they would disconnect each time I sent a message in chat. I found an easy fix to this, using the tellraw command. It worked but was not very practical in frequent use, so I made this mod which fixes most issues that get triggered by sending a chat message as well as this one.

HOW DOES IT WORK?

This mod cancels the chat event and instead sends the message content through the tellraw command in this format: <{user}> {content}, which is the default format.

JSON INJECTION?!

You do not need to worry about users using this for malicious purposes. There is a safety check which replaces all backslashes (\) and curly braces ({,}) with normal slashes (/) and parentheses ((,)) which prevents the input of escape characters or JSON into the tellraw command. Even double quotes (") get replaced by single quotes (') to prevent blank messages being sent.

AND if you do somehow manage to take advantage of this and want me to fix it, i'm right here


Project members

sixtynineninetynine

Member

Details

Licensed ARR
Published 3 months ago
Updated 3 months ago