Solved Contains and equalsIgnoreCase???

Discussion in 'Plugin Development' started by FisheyLP, Feb 16, 2014.

Thread Status:
Not open for further replies.
  1. I make a censoring plugin that reads censored words from a list in a config, that works fine. I want to do something like if(e.getMessage().contains.equalsIgnoreCase(path.to.config.list)) but that dont work :/ pls help me
     
  2. Offline

    xTrollxDudex

    FisheyLP
    PHP:
    e.getMessage().toLowerCase().contains(/* Stuff */)
    Make sure the Stuff is lowercase as well
     
  3. Can i use too that?
    Code:Java
    1.  
    2. e.getMessage().equalsIgnoreCase.contains(stuff)
     
  4. Offline

    PePsiGam3r

    Code:Java
    1.  
    2. Nope, you can use trolldude's code.
    3. It's ignoring the cases.
     
Thread Status:
Not open for further replies.

Share This Page