if argument error

Discussion in 'Plugin Development' started by mrzeapple, Apr 14, 2013.

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

    mrzeapple

    in my plugin i'm trying to make it check the config before it does a command but it says the left-hand side of an assignment must be a variable my code is:
    Code:
    if (getConfig().getBoolean("check") = "true")
     
  2. Offline

    L33m4n123

    mrzeapple
    do == true

    = true will try to set the left side to true instead of checking it if it is true
     
  3. Offline

    mrzeapple

    Thank you i thought about doing that then i realized i needed to change the getBoolean to getString
     
  4. Offline

    L33m4n123

    Ok. And if it is a string then do

    .equals("lala");
     
Thread Status:
Not open for further replies.

Share This Page