tierrif / chat-utils

Minecraft Fabric client-side mod to ease chat message copying.
https://modrinth.com/mod/chatutils/
GNU Lesser General Public License v3.0
17 stars 6 forks source link

the anti-spam doesn't seem to apply to others #5

Closed Scarlaid closed 1 year ago

Scarlaid commented 2 years ago

Comparing is dumb, but I'm pretty sure blocking other types of messages is possible, as how Lunar Client handle them Chat Utils isn't though image

tierrif commented 2 years ago

I'm extremely busy with college, so this will take time to fix if I do it on my own. I'm aware some messages don't collapse, can't even find a way to reproduce that yet, so PRs (or at least methods to reproduce these) are welcome.

Scarlaid commented 2 years ago

This messages are from a server plugin known as WorldGuard, purpose is like world protection but more independance and more stuff involves To reproduce, it's pretty simple:

tierrif commented 2 years ago

Nono, I'm aware that's WorldGuard, what I'm talking about is having steps to reproduce any message that fails to collapse normally. I am aware this happens with messages that are so long they line-break (as the client considers these separate messages, and multi-message spam filter isn't supported yet), and for whatever reason WorldGuard messages, even not being multi-line, never collapse - which I still don't understand why. The only thing I can think of right now is in case WorldGuard adds any metadata to each chat message, such as chat hover and/or click events, making them differ from each other, but other than that I really can't think of anything. I'll investigate this when I have time, or if you manage to find more info, please don't hesitate posting it here. Thanks.

tierrif commented 2 years ago

image So, I might have been able to find a fix for this, with a new multiline anti-spam feature. However, I don't know if it's just me, but it feels a little buggy on some sorts of chat messages. Let me know if it works fine for you. https://github.com/tierrif/chat-utils/releases/tag/1.6.0-EXPERIMENTAL

Scarlaid commented 2 years ago

Looks like it's working image

For spamming though image