Discussion in 'Releases' started by salva, Nov 18, 2017.

Approved AntiBadWords 1.1

Analyze player messages in search of forbidden words.

  1. salva
    Offline

    salva Friendly self-taught developer Administrator

    Joined:
    Jan 31, 2016
    Messages:
    576
    Likes Received:
    92
    salva submitted a new resource:

    AntiBadWords - Analyze player messages in search of forbidden words.

    Read more about this resource...
     
    #1
    • Like Like x 2
  2. ice cold
    Offline

    ice cold Active Member Member

    Joined:
    Oct 24, 2016
    Messages:
    610
    Likes Received:
    65
    Lets block the word lag. XD
     
    #2
    • Like Like x 1
  3. DreTaX
    Offline

    DreTaX Probably knows the answer... Administrator

    Joined:
    Jun 29, 2014
    Messages:
    3,929
    Likes Received:
    706
    https://github.com/salvadj1/AntiBadWords/blob/master/AntiBadWords.cs#L44

    A suggestion here.
    string Text = chatString.OriginalMessage;

    instead

    string Text = chatString.OriginalMessage.ToLower();

    This will detect anything in the chat without case sensitivity.
    Also here:
    https://github.com/salvadj1/AntiBadWords/blob/master/AntiBadWords.cs#L47

    Add a break; so the for cycle stops and doesnt run multiple times if it found 1 match already.

    You could also tolower() here:
    https://github.com/salvadj1/AntiBadWords/blob/master/AntiBadWords.cs#L147
     
    #3
    • Useful Useful x 1
  4. salva
    Offline

    salva Friendly self-taught developer Administrator

    Joined:
    Jan 31, 2016
    Messages:
    576
    Likes Received:
    92
    #4
    • Like Like x 2
  5. Pompeyo
    Offline

    Pompeyo Plugin Developer Plugin Developer

    Joined:
    Jan 6, 2018
    Messages:
    69
    Likes Received:
    7
    Hi !!
    It would be nice to add a command to remove a word from the list
     
    #5
  6. salva
    Offline

    salva Friendly self-taught developer Administrator

    Joined:
    Jan 31, 2016
    Messages:
    576
    Likes Received:
    92
    If I take note, I will try to do an update this weekend
     
    #6
    • Like Like x 1
  7. Pompeyo
    Offline

    Pompeyo Plugin Developer Plugin Developer

    Joined:
    Jan 6, 2018
    Messages:
    69
    Likes Received:
    7
    @salva
    hi !!!
    very good, waiting!
     
    #7
  8. Revezunds
    Offline

    Revezunds Moderator Moderator

    Joined:
    Dec 1, 2017
    Messages:
    91
    Likes Received:
    17
    Please add a possibility to change the blacklisted word into another
    Example: a player abuse and the word blacklisted changed to an already selected word by admin.
    upload_2019-3-10_17-59-18.png
     
    #8
    • Useful Useful x 1

Share This Page