TwelveIterationMods / ChatTweaks

Minecraft Mod. Emoticons, Image Preview, Tabs and Filters. Client-side only.
https://mods.twelveiterations.com/mc/chat-tweaks/
MIT License
18 stars 10 forks source link

Want to do a simple filter on username, can't get it to work #86

Closed sanomi78 closed 1 year ago

sanomi78 commented 1 year ago

Minecraft Version

1.12.x

Mod Loader

Forge

Mod Loader Version

14.23.5.2860

Mod Version

5.1.25

Describe the Issue

I can't get the filtering to work.

What i want to do is filter certain players into their own tab (let's call it the Ignore-tab for now). I am trying to understand regex but i have no idea.

So if i want to filter a player called Sungod into the tab called Ignore - what Regex code should i be using? And if i want to add a player called Moongod too, how should i go about that?

Thanks for the help!

Logs

No response

Do you use any performance-enhancing mods (e.g. OptiFine) or custom server distributions (e.g. SpongeForge)?

No response

BlayTheNinth commented 1 year ago

To have Sungod only appear on the Ignore Tab, you would use the pattern: <(Sungod)> (.+) To also add Moongod, you would add it using an or symbol (|): <(Sungod|Moongod)> (.+)

Make sure to set the view as "Exclusive" to prevent the message from also showing up on the main tab.

sanomi78 commented 1 year ago

First of all sorry for labeling it bug when it clearly isn't. I didn't have a better option.

Second: thank you very much - this helps a lot!