Solved Comparing Sign text

Discussion in 'Plugin Development' started by civ77, Mar 30, 2014.

Thread Status:
Not open for further replies.
  1. Offline

    civ77

    In my SignChangeEvent handler I have this comparison:
    Code:java
    1. if(event.getLine(0)=="[TP]" && event.getLine(1)=="CREATE")

    For some reason this is never true, I have debug text showing up in the console which verifies that my SignChangeEvent handler is actually firing and that the text on those lines is being read as "[TP]" and "CREATE". Does anyone know why this isn't working?
     
  2. Offline

    AmbaDev

    if (e.getLine(0).equals("[TP]") && e.getLine(1).equals("CREATE"))
     
  3. Offline

    civ77

    That fixed it, thanks.
     
Thread Status:
Not open for further replies.

Share This Page