kangarko / ChatControl-Red

Issue tracker and documentation for the next generation ChatControl Red, the most advanced chat management plugin.
43 stars 22 forks source link

1.20.4: Allowing viewing swears for some players? #2711

Closed bobhenl closed 3 weeks ago

bobhenl commented 3 weeks ago

Are you using MySQL?

No

Are you using BungeeCord/Velocity?

No

Question

Hello, is it possible to allow this part:

group swear

ignore perm chatcontrol.bypass.swear

then replace @prolong *

to be executed only if the VIEWER has some specific permission? Like that he players can decide on their own (they could set it in the custom GUI or so), if they want to view the unreplaced or replaced message? So this way we could allow seeing swearings for some players

kangarko commented 3 weeks ago

Sorry, technically impossible.

kangarko commented 3 weeks ago

And would drain the plugins performance so much having to run javascripts for each player separatedly

bobhenl commented 3 weeks ago

@kangarko, but there exists some relational placeholders; wouldn't it have a similar effect? I use them in the chat to show the prefix depending if player has or doesn't have the resource pack (he sees the custom rank icon or normal prefix), I guess it could work similarly?

kangarko commented 3 weeks ago

This is handled at the component level, not at the rule level. Completely different technically unfortunately