1. 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!

  2. LOOKING FOR A VERSION OF SKRIPT?

    You can always check out our Wiki for downloads and any other information about Skript!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Replace effect does not work at all

Discussion in 'Skript' started by 2SurvivalGuys, Oct 16, 2020.

Thread Status:
Not open for further replies.
  1. 2SurvivalGuys

    2SurvivalGuys Member

    Joined:
    Oct 16, 2020
    Messages:
    2
    Likes Received:
    0
    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 (Text):
    1.  
    2. on chat:
    3.    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?
     
  2. Dekku

    Dekku Member

    Joined:
    Oct 16, 2020
    Messages:
    1
    Likes Received:
    0
    Hey, this should work:


    Code (Text):
    1. on chat:
    2.    if message is "cool" or "idiot" or "noob":
    3.    replace all "cool" and "idiot" and "noob" with "*****" in message
     
  3. 2SurvivalGuys

    2SurvivalGuys Member

    Joined:
    Oct 16, 2020
    Messages:
    2
    Likes Received:
    0
    Sadly it didn't work haha
     
Thread Status:
Not open for further replies.

Share This Page

Loading...