Search Unity

how to prevent offensive words in a multiplayer game?

Discussion in 'Multiplayer' started by amoraleite, Oct 17, 2014.

  1. amoraleite

    amoraleite

    Joined:
    Oct 16, 2014
    Posts:
    41
    Hi guys!

    I'm developing a multiplayer game. The player can put his name that he wants to play. But I would like to know how to avoid profanity, offensive words.

    Maybe the TXT with this words?


    Anyone have any ideas?

    Thank you!
     
  2. wrstscrnnm6

    wrstscrnnm6

    Joined:
    Jan 31, 2011
    Posts:
    20
    The standard way of doing this is, like you said, to have a long list of all offending words. When the player tries to create a username you check the string of the proposed username against the list of bad words. If none of the bad words are found, than you continue creating the username.