Replace effect does not work at all

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

2SurvivalGuys

Member
Oct 16, 2020
2
0
1
23
I have been wanting to make a chat mention feature to highlight player names in a color like gold. After I finished code like that it didn't work at all. I decided to see what the problem is and simplify everything and it came down do the replace effect not working. I seem to not have had any console errors except for one a long time ago. I have tried my best to accurately take out plugins one by one with plugman without breaking the server. Any ideas as to what could be causing this? Has anyone had a similar experience?
Code:
on chat:
   replace all "cool", "idiot" and "noob" with "****" in the message

The "on chat:" event works fine when messaging "test" and stuff, but replacing for chat doesn't work. I have tried using it in other wordings which I cant exactly remember what they were, and I have tried removing all my Skript add-ons.

My skript version is the latest of this post 2.5, and this code I am using doesn't need to utilize an add-on. Is there another plugin overriding or clashing with Skript on this event? I have looked at the console for errors but couldn't find any except for one but it didn't lead anywhere.

I will try my best to accurately take out plugins one by one with plugman without breaking the server. Any ideas as to what could be causing this? Has anyone had a similar expierence?
 
Hey, this should work:


Code:
on chat:
   if message is "cool" or "idiot" or "noob":
   replace all "cool" and "idiot" and "noob" with "*****" in message
 
Status
Not open for further replies.