Help! English only Anti-Swear...

Discussion in 'Spigot Discussion' started by TheIronMinerLv, May 11, 2016.

Thread Status:
Not open for further replies.
  1. Hello!

    Is there any plugin, that can change certain letters to english letters? Long story short: I live in a country, who has letters in alphabet, which are similar to English letters (for example, we have letter Ā or ā, in english they would be A or a). So are there any plugin, that could change those letters to english letters? I have 2 reasons for that:

    1. Its REALLY hard to make Anti-Swear to block words, for example, a ford fuc* in my language can be written as fūc*
    2. In Minecraft, letters like ā, ē, ū etc. looks really weird.

    So I need a plugin, that would change letters in chat. Last example: Someone writes "āĒūķĻ" plugin changes it to "aEukL". If it would be swear word, Anti-Swear would detect it.

    Thanks in advance, and sorry for my english, I'm still learning it...
     
  2. You could easily use a chat event for this.
    This code isn't exact as I'm on my phone.
    Code (Text):
    @EventHandler
    public void onSwearChange(AsynchChatEvent e)  
    if(e.getMessage().contains("Insert word here") {
    e.setMessage("replaced word")
     
     
  3. I found this plugin, I think it might be using similar method.
     
    • Funny Funny x 1
  4. Add the line that Biastgaming said. Well, a bit different this isnt completelly correct so. ill post the correct one later.
     
  5. Thanks for suggestions, I'm going to use that plugin what I mentioned before, it works, so now I can close this thread.
     
Thread Status:
Not open for further replies.