Solved Block certain messages

Discussion in 'Plugin Requests' started by yVitaum, Sep 25, 2016.

  1. Hi, I'm trying to create a dictionary with words so that when the player enter a word that is in the dictionary, it is cautioned.

    For example:

    if(message.StartsWith("sh#t"))
    {
    rust.Notice(netuser, "Stop!");
    }

    But I can not put too many words, separated by commas. So I think I create a dictionary with the words.
    I am sure? And can someone give me a light?
    Tnks.
     
  2. Take a look at existing word filters, like Chat Guard, BetterChat also includes one.
     
  3. Good idea, thank you